From 6a1766a602fa3354827b06d7b5dbf8f694b86690 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 18 Apr 2021 17:34:44 +0800 Subject: [PATCH] Remove unnecessary allocation --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index fb148cc..1367e85 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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())