From 87e7a84a27da83dff3ab06b3cee0713940ccb974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 17 Oct 2021 12:38:59 +0300 Subject: [PATCH] gstreamer: Remove one unnecessary use of unsafe in query code --- gstreamer/src/query.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer/src/query.rs b/gstreamer/src/query.rs index 5d4c738ca..e914ff7da 100644 --- a/gstreamer/src/query.rs +++ b/gstreamer/src/query.rs @@ -212,7 +212,7 @@ macro_rules! declare_concrete_query( impl From<$name> for Query { fn from(concrete: $name) -> Self { skip_assert_initialized!(); - unsafe { from_glib_none(concrete.0.as_mut_ptr()) } + concrete.0 } } }