diff options
author | Jeremy Kolb <[email protected]> | 2019-07-04 18:26:44 +0100 |
---|---|---|
committer | Jeremy Kolb <[email protected]> | 2019-07-04 22:43:00 +0100 |
commit | 4ad9e986ad05e404df73701c098b71f73a847ca6 (patch) | |
tree | 2a2b2cc9dbee07d0aa92df883c807edbab264a85 /crates/ra_cli | |
parent | c6a6e43372de9530ec7df0f38352466ed107e1a2 (diff) |
Some clippy fixes for 1.36
Diffstat (limited to 'crates/ra_cli')
-rw-r--r-- | crates/ra_cli/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<String> { | |||
112 | } | 112 | } |
113 | 113 | ||
114 | fn rsplit_at_char(s: &str, c: char) -> Result<(&str, &str)> { | 114 | fn rsplit_at_char(s: &str, c: char) -> Result<(&str, &str)> { |
115 | let idx = s.rfind(":").ok_or_else(|| format!("no `{}` in {}", c, s))?; | 115 | let idx = s.rfind(':').ok_or_else(|| format!("no `{}` in {}", c, s))?; |
116 | Ok((&s[..idx], &s[idx + 1..])) | 116 | Ok((&s[..idx], &s[idx + 1..])) |
117 | } | 117 | } |