mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
Enable clippy::unnecessary_to_owned
(#8908)
lint for `unnecessary_to_owned` and fix the sole violation in the codebase
This commit is contained in:
parent
b68a277b5e
commit
bca98caa07
@ -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"]
|
||||
|
@ -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}");
|
||||
|
Loading…
Reference in New Issue
Block a user