chore: fix clippy lints
This commit is contained in:
parent
5dbb288a49
commit
45b9f2a627
10 changed files with 21 additions and 18 deletions
|
|
@ -68,9 +68,9 @@ pub enum UrlTarget {
|
|||
},
|
||||
}
|
||||
|
||||
impl ToString for UrlTarget {
|
||||
fn to_string(&self) -> String {
|
||||
self.to_url()
|
||||
impl std::fmt::Display for UrlTarget {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.write_str(&self.to_url())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue