This commit is contained in:
2023-08-29 21:34:01 +02:00
parent 5eee5309ad
commit ce17b74cbf
3 changed files with 10 additions and 12 deletions

View File

@@ -64,9 +64,9 @@ impl fmt::Display for UriPath {
}
}
impl<'a> Into<&'a str> for &'a UriPath {
fn into(self) -> &'a str {
self.0.as_str()
impl<'a> From<&'a UriPath> for &'a str {
fn from(val: &'a UriPath) -> Self {
val.0.as_str()
}
}