From 6f8a5ad36946eb75850f79ee631d3b9a3bff78ae Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Fri, 17 Mar 2017 17:04:50 +0000 Subject: [PATCH] Switch single string constant to char constant --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 47b2fae..6fc8053 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -950,7 +950,7 @@ impl Config { self.get_var(name).ok().map(|tool| { let whitelist = ["ccache", "distcc"]; for t in whitelist.iter() { - if tool.starts_with(t) && tool[t.len()..].starts_with(" ") { + if tool.starts_with(t) && tool[t.len()..].starts_with(' ') { return (t.to_string(), vec![tool[t.len()..].trim_left().to_string()]); } }