From 4ad9e986ad05e404df73701c098b71f73a847ca6 Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Thu, 4 Jul 2019 13:26:44 -0400 Subject: Some clippy fixes for 1.36 --- crates/ra_cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_cli') diff --git a/crates/ra_cli/src/main.rs b/crates/ra_cli/src/main.rs index 25edbd5f7..48bc64450 100644 --- a/crates/ra_cli/src/main.rs +++ b/crates/ra_cli/src/main.rs @@ -112,6 +112,6 @@ fn read_stdin() -> Result { } fn rsplit_at_char(s: &str, c: char) -> Result<(&str, &str)> { - let idx = s.rfind(":").ok_or_else(|| format!("no `{}` in {}", c, s))?; + let idx = s.rfind(':').ok_or_else(|| format!("no `{}` in {}", c, s))?; Ok((&s[..idx], &s[idx + 1..])) } -- cgit v1.2.3