From 5ae517d0931650d72b22d8e342ba99e21537efbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 2 Nov 2018 16:05:57 +0200 Subject: [PATCH] Use std::path to directly refer to path::Path --- gstreamer-check/src/harness.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gstreamer-check/src/harness.rs b/gstreamer-check/src/harness.rs index 14edfcda0..60041e7e2 100644 --- a/gstreamer-check/src/harness.rs +++ b/gstreamer-check/src/harness.rs @@ -17,6 +17,7 @@ use std::marker::PhantomData; use std::mem; use std::ops; use std::ptr; +use std::path; use TestClock; #[derive(Debug)] @@ -198,7 +199,7 @@ impl Harness { unsafe { from_glib_full(ffi::gst_harness_create_buffer(self.0.as_ptr(), size)) } } - pub fn dump_to_file>(&mut self, filename: P) { + pub fn dump_to_file>(&mut self, filename: P) { let filename = filename.as_ref(); unsafe { ffi::gst_harness_dump_to_file(self.0.as_ptr(), filename.to_glib_none().0);