diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-04-08 15:24:07 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-04-08 15:24:07 +0300 |
commit | 4206b53c09ce049c68b6c8decdc220f6687468b8 (patch) | |
tree | 1ca7053451b87ed10155d349258ae26bedb1ef0e /generic | |
parent | 7173790da26ef054bf30c74f43bf7585b52f35cb (diff) |
Mark GMutex mutex guards as #[must_use]
See gstreamer-rs commit b21f5764309f9f65666016a9069e1b938935e6f2
Diffstat (limited to 'generic')
-rw-r--r-- | generic/threadshare/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/threadshare/src/lib.rs b/generic/threadshare/src/lib.rs index 42ecc114d..beb53569a 100644 --- a/generic/threadshare/src/lib.rs +++ b/generic/threadshare/src/lib.rs @@ -85,6 +85,7 @@ pub fn set_element_flags<T: glib::IsA<gst::Object> + glib::IsA<gst::Element>>( } } +#[must_use = "if unused the Mutex will immediately unlock"] struct MutexGuard<'a>(&'a glib_ffi::GMutex); impl<'a> MutexGuard<'a> { |