diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-05-08 09:41:14 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-05-08 09:41:30 +0300 |
commit | 97b6a9099fc36285ff7698043e7869270ee493ac (patch) | |
tree | baf153885739bab4f7ffe279259ad899427287b5 /generic/file/src | |
parent | ee0b2e79da23502cdc05d1cdad23d351f017c183 (diff) |
file: Don't use Url::into_string() anymore but the generic Into trait
The former is deprecated now.
Diffstat (limited to 'generic/file/src')
-rw-r--r-- | generic/file/src/filesink/imp.rs | 2 | ||||
-rw-r--r-- | generic/file/src/filesrc/imp.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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() }) } |