diff options
| author | Tetsuharu Ohzeki <tetsuharu.ohzeki@gmail.com> | 2024-02-10 00:26:49 +0900 |
|---|---|---|
| committer | Tetsuharu Ohzeki <tetsuharu.ohzeki@gmail.com> | 2024-02-10 01:00:40 +0900 |
| commit | a9a315fd73f5019debbc6e77b2c164033eee9970 (patch) | |
| tree | ea037a906d8ed5e7bbe66e0c872de0907011b9aa | |
| parent | 8c2f301a41d5d709d6f8b6fc479a14e909cc2fce (diff) | |
| download | rust-a9a315fd73f5019debbc6e77b2c164033eee9970.tar.gz rust-a9a315fd73f5019debbc6e77b2c164033eee9970.zip | |
base-db: Fix warnings about clippy `str_to_string` rule
| -rw-r--r-- | crates/base-db/src/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/base-db/src/input.rs b/crates/base-db/src/input.rs index 51e6fdb9510..9560826e373 100644 --- a/crates/base-db/src/input.rs +++ b/crates/base-db/src/input.rs @@ -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) } |
