mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
project-model: Fix warnings about clippy str_to_string
rule
This commit is contained in:
parent
d00f1c1b16
commit
5d1f2835af
7 changed files with 16 additions and 16 deletions
|
@ -167,7 +167,7 @@ fn utf8_stdout(mut cmd: Command) -> anyhow::Result<String> {
|
|||
}
|
||||
}
|
||||
let stdout = String::from_utf8(output.stdout)?;
|
||||
Ok(stdout.trim().to_string())
|
||||
Ok(stdout.trim().to_owned())
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue