Skip to content

Commit b396fe2

Browse files
committed
fix: apply suggestion
1 parent a9fa865 commit b396fe2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ impl AsRef<[u8]> for Url {
461461
}
462462
}
463463

464-
impl Into<String> for Url {
465-
fn into(self) -> String {
466-
self.href().to_owned()
464+
impl From<Url> for String {
465+
fn from(val: Url) -> Self {
466+
val.href().to_owned()
467467
}
468468
}
469469

0 commit comments

Comments
 (0)