From 9c45a9e58632966984a79e18aa5221efb65e0ead Mon Sep 17 00:00:00 2001 From: Shotaro Yamada Date: Wed, 25 Sep 2019 10:32:01 +0900 Subject: Remove redundant clone() --- 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 7aacf515d..8b91ba3e9 100644 --- a/crates/ra_cli/src/main.rs +++ b/crates/ra_cli/src/main.rs @@ -93,7 +93,7 @@ fn main() -> Result<()> { (true, true) => Err("Invalid flags: -q conflicts with -v")?, }; let memory_usage = matches.contains("--memory-usage"); - let only = matches.value_from_str(["-o", "--only"])?.map(|v: String| v.to_owned()); + let only: Option = matches.value_from_str(["-o", "--only"])?; let path = { let mut trailing = matches.free()?; if trailing.len() != 1 { -- cgit v1.2.3