mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
base-db: Fix warnings about clippy str_to_string rule
This commit is contained in:
@@ -782,7 +782,7 @@ fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
"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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user