Run everything through rustfmt again

This commit is contained in:
Sebastian Dröge 2018-11-03 20:30:10 +02:00
parent 97cc1c8458
commit 712ea76d7d
4 changed files with 9 additions and 10 deletions

View file

@ -57,12 +57,7 @@ where
unimplemented!()
}
fn create(
&self,
element: &T,
offset: u64,
length: u32,
) -> Result<gst::Buffer, gst::FlowError> {
fn create(&self, element: &T, offset: u64, length: u32) -> Result<gst::Buffer, gst::FlowError> {
element.parent_create(offset, length)
}
@ -119,7 +114,8 @@ pub unsafe trait BaseSrcBase:
// FIXME: Wrong signature in -sys bindings
// https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/issues/3
let buffer_ref = &mut buffer as *mut _ as *mut gst_ffi::GstBuffer;
let ret: gst::FlowReturn = from_glib(f(self.to_glib_none().0, offset, length, buffer_ref));
let ret: gst::FlowReturn =
from_glib(f(self.to_glib_none().0, offset, length, buffer_ref));
ret.into_result_value(|| from_glib_full(buffer))
})

View file

@ -328,7 +328,8 @@ unsafe impl<T: IsA<gst::Element> + IsA<gst_base::BaseTransform> + ObjectType> Ba
for T
where
T::InstanceStructType: PanicPoison,
{}
{
}
pub type BaseTransformClass = ClassStruct<BaseTransform>;
// FIXME: Boilerplate

View file

@ -199,7 +199,8 @@ glib_wrapper! {
unsafe impl<T: IsA<gst::Element> + ObjectType> ElementBase for T where
Self::InstanceStructType: PanicPoison
{}
{
}
pub type ElementClass = ClassStruct<Element>;

View file

@ -62,7 +62,8 @@ glib_wrapper! {
unsafe impl<T: IsA<gst::Element> + IsA<gst::Bin> + IsA<gst::Pipeline> + ObjectType> PipelineBase
for T
{}
{
}
pub type PipelineClass = ClassStruct<Pipeline>;
// FIXME: Boilerplate