mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +00:00
Run everything through rustfmt again
It got some improvements for applying consistent formatting to code blocks in macros. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/468>
This commit is contained in:
parent
020e2a4464
commit
6e431ce060
3 changed files with 18 additions and 15 deletions
|
@ -30,23 +30,26 @@ macro_rules! event_builder_generic_impl {
|
|||
pub fn seqnum(self, seqnum: gst::Seqnum) -> Self {
|
||||
Self {
|
||||
seqnum: Some(seqnum),
|
||||
.. self
|
||||
..self
|
||||
}
|
||||
}
|
||||
|
||||
pub fn running_time_offset(self, running_time_offset: i64) -> Self {
|
||||
Self {
|
||||
running_time_offset: Some(running_time_offset),
|
||||
.. self
|
||||
..self
|
||||
}
|
||||
}
|
||||
|
||||
pub fn other_fields(self, other_fields: &[(&'a str, &'a dyn ToSendValue)]) -> Self {
|
||||
Self {
|
||||
other_fields: self.other_fields.iter().cloned()
|
||||
other_fields: self
|
||||
.other_fields
|
||||
.iter()
|
||||
.cloned()
|
||||
.chain(other_fields.iter().cloned())
|
||||
.collect(),
|
||||
.. self
|
||||
..self
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -64,7 +67,7 @@ macro_rules! event_builder_generic_impl {
|
|||
|
||||
{
|
||||
let s = gst::StructureRef::from_glib_borrow_mut(
|
||||
gst_sys::gst_event_writable_structure(event)
|
||||
gst_sys::gst_event_writable_structure(event),
|
||||
);
|
||||
|
||||
for (k, v) in self.other_fields {
|
||||
|
@ -75,7 +78,7 @@ macro_rules! event_builder_generic_impl {
|
|||
from_glib_full(event)
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
pub fn new_downstream_force_key_unit_event<'a>() -> DownstreamForceKeyUnitEventBuilder<'a> {
|
||||
|
|
|
@ -965,7 +965,7 @@ macro_rules! event_builder_generic_impl {
|
|||
pub fn seqnum(self, seqnum: Seqnum) -> Self {
|
||||
Self {
|
||||
builder: self.builder.seqnum(seqnum),
|
||||
.. self
|
||||
..self
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -973,7 +973,7 @@ macro_rules! event_builder_generic_impl {
|
|||
pub fn running_time_offset(self, running_time_offset: i64) -> Self {
|
||||
Self {
|
||||
builder: self.builder.running_time_offset(running_time_offset),
|
||||
.. self
|
||||
..self
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -981,7 +981,7 @@ macro_rules! event_builder_generic_impl {
|
|||
pub fn other_fields(self, other_fields: &[(&'a str, &'a dyn ToSendValue)]) -> Self {
|
||||
Self {
|
||||
builder: self.builder.other_fields(other_fields),
|
||||
.. self
|
||||
..self
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -999,7 +999,7 @@ macro_rules! event_builder_generic_impl {
|
|||
|
||||
if !self.builder.other_fields.is_empty() {
|
||||
let s = StructureRef::from_glib_borrow_mut(
|
||||
gst_sys::gst_event_writable_structure(event)
|
||||
gst_sys::gst_event_writable_structure(event),
|
||||
);
|
||||
|
||||
for (k, v) in self.builder.other_fields {
|
||||
|
@ -1010,7 +1010,7 @@ macro_rules! event_builder_generic_impl {
|
|||
from_glib_full(event)
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
pub struct FlushStartBuilder<'a> {
|
||||
|
|
|
@ -1291,7 +1291,7 @@ macro_rules! message_builder_generic_impl {
|
|||
pub fn src<O: IsA<Object> + Cast + Clone>(self, src: Option<&O>) -> Self {
|
||||
Self {
|
||||
builder: self.builder.src(src),
|
||||
.. self
|
||||
..self
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1299,7 +1299,7 @@ macro_rules! message_builder_generic_impl {
|
|||
pub fn seqnum(self, seqnum: Seqnum) -> Self {
|
||||
Self {
|
||||
builder: self.builder.seqnum(seqnum),
|
||||
.. self
|
||||
..self
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1308,7 +1308,7 @@ macro_rules! message_builder_generic_impl {
|
|||
pub fn other_fields(self, other_fields: &[(&'a str, &'a dyn ToSendValue)]) -> Self {
|
||||
Self {
|
||||
builder: self.builder.other_fields(other_fields),
|
||||
.. self
|
||||
..self
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1339,7 +1339,7 @@ macro_rules! message_builder_generic_impl {
|
|||
from_glib_full(msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
pub struct EosBuilder<'a> {
|
||||
|
|
Loading…
Reference in a new issue