From a8f2e0cfd7b4805e6799be05b99c72170ac75a05 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Tue, 3 Nov 2020 20:17:34 -0500 Subject: [PATCH] Use char instead of string for single char match --- src/routes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes.rs b/src/routes.rs index 640a909..a25af20 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -217,7 +217,7 @@ enum HopAction { /// file. fn resolve_path(path: PathBuf, args: &str) -> Result { let output = Command::new(path.canonicalize()?) - .args(args.split(" ")) + .args(args.split(' ')) .output()?; if output.status.success() {