Enable clippy::unnecessary_to_owned (#8908)

lint for `unnecessary_to_owned` and fix the sole violation in the
codebase
This commit is contained in:
Kirpal Grewal authored and GitHub committed 2024-03-05 17:28:58 -05:00
1 parent 7484a9083a
commit b7f56ac4e4
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -384,7 +384,6 @@ reversed_empty_ranges = "allow"
single_range_in_vec_init = "allow"
suspicious_to_owned = "allow"
type_complexity = "allow"
unnecessary_to_owned = "allow"
[workspace.metadata.cargo-machete]
ignored = ["bindgen", "cbindgen", "prost_build", "serde"]
+1 -1
View File
@@ -8720,7 +8720,7 @@ impl Editor {
match permalink {
Ok(permalink) => {
cx.open_url(&permalink.to_string());
cx.open_url(permalink.as_ref());
}
Err(err) => {
let message = format!("Failed to open permalink: {err}");