Skip to content

Commit a9a315f

Browse files
base-db: Fix warnings about clippy str_to_string rule
1 parent 8c2f301 commit a9a315f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/base-db/src/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ impl FromStr for Edition {
782782
"2018" => Edition::Edition2018,
783783
"2021" => Edition::Edition2021,
784784
"2024" => Edition::Edition2024,
785-
_ => return Err(ParseEditionError { invalid_input: s.to_string() }),
785+
_ => return Err(ParseEditionError { invalid_input: s.to_owned() }),
786786
};
787787
Ok(res)
788788
}

0 commit comments

Comments
 (0)