diff --git a/generic/file/src/filesink/imp.rs b/generic/file/src/filesink/imp.rs index 0c541bfcc..712bd7d7c 100644 --- a/generic/file/src/filesink/imp.rs +++ b/generic/file/src/filesink/imp.rs @@ -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() }) } diff --git a/generic/file/src/filesrc/imp.rs b/generic/file/src/filesrc/imp.rs index 6cb10b33d..739465908 100644 --- a/generic/file/src/filesrc/imp.rs +++ b/generic/file/src/filesrc/imp.rs @@ -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() }) }