mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Remove redundant clone()
This commit is contained in:
parent
7e0fa71532
commit
9c45a9e586
14 changed files with 21 additions and 29 deletions
|
@ -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<String> = matches.value_from_str(["-o", "--only"])?;
|
||||
let path = {
|
||||
let mut trailing = matches.free()?;
|
||||
if trailing.len() != 1 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue