Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2021-05-08 09:41:14 +0300
committerSebastian Dröge <sebastian@centricular.com>2021-05-08 09:41:30 +0300
commit97b6a9099fc36285ff7698043e7869270ee493ac (patch)
treebaf153885739bab4f7ffe279259ad899427287b5 /generic
parentee0b2e79da23502cdc05d1cdad23d351f017c183 (diff)
file: Don't use Url::into_string() anymore but the generic Into trait
The former is deprecated now.
Diffstat (limited to 'generic')
-rw-r--r--generic/file/src/filesink/imp.rs2
-rw-r--r--generic/file/src/filesrc/imp.rs2
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()
})
}