diff options
author | Shotaro Yamada <[email protected]> | 2019-09-25 02:32:01 +0100 |
---|---|---|
committer | Shotaro Yamada <[email protected]> | 2019-09-25 02:32:01 +0100 |
commit | 9c45a9e58632966984a79e18aa5221efb65e0ead (patch) | |
tree | c3c2af75fa7be376506bf0ffe23fe8cad9c6c402 /crates/ra_cli | |
parent | 7e0fa715329571da8d5d551b1815303c39cf51c1 (diff) |
Remove redundant clone()
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 7aacf515d..8b91ba3e9 100644 --- a/crates/ra_cli/src/main.rs +++ b/crates/ra_cli/src/main.rs | |||
@@ -93,7 +93,7 @@ fn main() -> Result<()> { | |||
93 | (true, true) => Err("Invalid flags: -q conflicts with -v")?, | 93 | (true, true) => Err("Invalid flags: -q conflicts with -v")?, |
94 | }; | 94 | }; |
95 | let memory_usage = matches.contains("--memory-usage"); | 95 | let memory_usage = matches.contains("--memory-usage"); |
96 | let only = matches.value_from_str(["-o", "--only"])?.map(|v: String| v.to_owned()); | 96 | let only: Option<String> = matches.value_from_str(["-o", "--only"])?; |
97 | let path = { | 97 | let path = { |
98 | let mut trailing = matches.free()?; | 98 | let mut trailing = matches.free()?; |
99 | if trailing.len() != 1 { | 99 | if trailing.len() != 1 { |