mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
base-db: Fix warnings about clippy str_to_string
rule
This commit is contained in:
parent
8c2f301a41
commit
a9a315fd73
1 changed files with 1 additions and 1 deletions
|
@ -782,7 +782,7 @@ impl FromStr for Edition {
|
|||
"2018" => Edition::Edition2018,
|
||||
"2021" => Edition::Edition2021,
|
||||
"2024" => Edition::Edition2024,
|
||||
_ => return Err(ParseEditionError { invalid_input: s.to_string() }),
|
||||
_ => return Err(ParseEditionError { invalid_input: s.to_owned() }),
|
||||
};
|
||||
Ok(res)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue