Run everything through rustfmt

This commit is contained in:
Sebastian Dröge 2018-09-28 12:01:14 +03:00
parent 564f9faf84
commit a43c78f2c5
5 changed files with 12 additions and 16 deletions

View file

@ -465,8 +465,7 @@ impl fmt::Debug for EventRef {
.field("type", &unsafe {
let type_ = ffi::gst_event_type_get_name((*self.as_ptr()).type_);
CStr::from_ptr(type_).to_str().unwrap()
})
.field("seqnum", &self.get_seqnum())
}).field("seqnum", &self.get_seqnum())
.field("structure", &self.get_structure())
.finish()
}

View file

@ -89,10 +89,13 @@ mod structure_serde;
pub mod caps;
pub use caps::{Caps, CapsRef};
mod caps_features;
#[cfg(feature = "ser_de")]
mod caps_serde;
mod caps_features;
pub use caps_features::{CapsFeatures, CapsFeaturesRef, CAPS_FEATURE_MEMORY_SYSTEM_MEMORY, CAPS_FEATURES_MEMORY_SYSTEM_MEMORY};
pub use caps_features::{
CapsFeatures, CapsFeaturesRef, CAPS_FEATURES_MEMORY_SYSTEM_MEMORY,
CAPS_FEATURE_MEMORY_SYSTEM_MEMORY,
};
#[cfg(feature = "ser_de")]
mod caps_features_serde;

View file

@ -361,8 +361,7 @@ impl fmt::Debug for MessageRef {
.field("type", &unsafe {
let type_ = ffi::gst_message_type_get_name((*self.as_ptr()).type_);
CStr::from_ptr(type_).to_str().unwrap()
})
.field("seqnum", &self.get_seqnum())
}).field("seqnum", &self.get_seqnum())
.field("src", &self.get_src().map(|s| s.get_name()))
.field("structure", &self.get_structure())
.finish()
@ -1114,8 +1113,7 @@ impl<'a> StreamsSelected<'a> {
self.as_mut_ptr(),
i,
))
})
.collect()
}).collect()
}
}
}
@ -1152,8 +1150,7 @@ impl<'a> Redirect<'a> {
from_glib_none(tags),
structure,
)
})
.collect()
}).collect()
}
}
}

View file

@ -212,8 +212,7 @@ impl fmt::Debug for QueryRef {
.field("type", &unsafe {
let type_ = ffi::gst_query_type_get_name((*self.as_ptr()).type_);
CStr::from_ptr(type_).to_str().unwrap()
})
.field("structure", &self.get_structure())
}).field("structure", &self.get_structure())
.finish()
}
}

View file

@ -248,10 +248,8 @@ mod tests {
c.get_structure(0)
.map(|s| s.get_name() == "application/xml")
.unwrap_or(false)
})
.unwrap_or(false)
})
.unwrap();
}).unwrap_or(false)
}).unwrap();
let data = b"<?xml version=\"1.0\"?><test>test</test>";
let data = &data[..];