This commit is contained in:
2023-08-29 21:34:00 +02:00
parent be9be4c9da
commit 6e8873f1b9
6 changed files with 22 additions and 24 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()
}
}