Skip to content

Commit

Permalink
Remove unnecessary allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Apr 18, 2021
1 parent 90bc634 commit 6a1766a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ mod unix {
.ok_or(Error::from_raw_os_error(0)) // If not found, return err
.and_then(|program| {
// If found run the handler
if program.to_string() == "gio" {
if *program == "gio" {
Command::new(program)
.stdout(Stdio::null())
.stderr(Stdio::null())
Expand Down

0 comments on commit 6a1766a

Please sign in to comment.