mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-21 18:01:07 +00:00
Run cargo fmt on the whole code base (#9394)
* Run cargo fmt on the whole code base * Second run * Add CI check * Fix compilation * More unnecessary braces * Handle weights * Use --all * Use correct attributes... * Fix UI tests * AHHHHHHHHH * 🤦 * Docs * Fix compilation * 🤷 * Please stop * 🤦 x 2 * More * make rustfmt.toml consistent with polkadot Co-authored-by: André Silva <andrerfosilva@gmail.com>
This commit is contained in:
@@ -40,11 +40,7 @@ pub struct ConsoleLogLayer<S, N = tracing_subscriber::fmt::format::DefaultFields
|
||||
impl<S, T> ConsoleLogLayer<S, tracing_subscriber::fmt::format::DefaultFields, T> {
|
||||
/// Create a new [`ConsoleLogLayer`] using the `EventFormat` provided in argument.
|
||||
pub fn new(event_format: EventFormat<T>) -> Self {
|
||||
Self {
|
||||
event_format,
|
||||
fmt_fields: Default::default(),
|
||||
_inner: std::marker::PhantomData,
|
||||
}
|
||||
Self { event_format, fmt_fields: Default::default(), _inner: std::marker::PhantomData }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,11 +86,11 @@ where
|
||||
Ok(buf) => {
|
||||
a = buf;
|
||||
&mut *a
|
||||
}
|
||||
},
|
||||
_ => {
|
||||
b = String::new();
|
||||
&mut b
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
if self.format_event(&ctx, &mut buf, event).is_ok() {
|
||||
|
||||
@@ -42,12 +42,12 @@ where
|
||||
"newly created span with ID {:?} did not exist in the registry; this is a bug!",
|
||||
id
|
||||
);
|
||||
return;
|
||||
}
|
||||
return
|
||||
},
|
||||
};
|
||||
|
||||
if span.name() != PREFIX_LOG_SPAN {
|
||||
return;
|
||||
return
|
||||
}
|
||||
|
||||
let mut extensions = span.extensions_mut();
|
||||
|
||||
Reference in New Issue
Block a user