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:
Bastian KöcherandAndré Silva authored and GitHub committed 2021-07-21 14:32:32 +00:00
1 parent d451c38c1c
commit 7b56ab15b4
1010 files changed
+53334 -51203

No files matched your search

@@ -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();