From dae1a517646ce538383778235ff53e9e973cda4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 30 Aug 2017 15:12:11 +0300 Subject: [PATCH] Work around rustdoc bug with impls on type aliases https://github.com/rust-lang/rust/issues/44182 --- gstreamer/src/event.rs | 2 +- gstreamer/src/message.rs | 2 +- gstreamer/src/query.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gstreamer/src/event.rs b/gstreamer/src/event.rs index 93d6529aa..4501f2489 100644 --- a/gstreamer/src/event.rs +++ b/gstreamer/src/event.rs @@ -133,7 +133,7 @@ impl EventRef { } } -impl Event { +impl GstRc { pub fn new_flush_start() -> FlushStartBuilder { assert_initialized_main_thread!(); FlushStartBuilder::new() diff --git a/gstreamer/src/message.rs b/gstreamer/src/message.rs index e97b4be9a..45e46fce0 100644 --- a/gstreamer/src/message.rs +++ b/gstreamer/src/message.rs @@ -127,7 +127,7 @@ impl MessageRef { } } -impl Message { +impl GstRc { pub fn new_eos() -> EosBuilder { assert_initialized_main_thread!(); EosBuilder::new() diff --git a/gstreamer/src/query.rs b/gstreamer/src/query.rs index 84ea5de13..42edcf3cb 100644 --- a/gstreamer/src/query.rs +++ b/gstreamer/src/query.rs @@ -27,7 +27,7 @@ unsafe impl MiniObject for QueryRef { type GstType = ffi::GstQuery; } -impl Query { +impl GstRc { pub fn new_position(fmt: ::Format) -> Self { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_query_new_position(fmt.to_glib())) }