file: Don't use Url::into_string() anymore but the generic Into trait

The former is deprecated now.
This commit is contained in:
Sebastian Dröge 2021-05-08 09:41:14 +03:00
parent ee0b2e79da
commit 97b6a9099f
2 changed files with 2 additions and 2 deletions

View file

@ -303,7 +303,7 @@ impl URIHandlerImpl for FileSink {
settings.location.as_ref().map(|location| {
Url::from_file_path(location)
.expect("FileSink::get_uri couldn't build `Url` from `location`")
.into_string()
.into()
})
}

View file

@ -356,7 +356,7 @@ impl URIHandlerImpl for FileSrc {
settings.location.as_ref().map(|location| {
Url::from_file_path(location)
.expect("FileSrc::get_uri couldn't build `Url` from `location`")
.into_string()
.into()
})
}