Fix formatting

This commit is contained in:
Jomer.Dev 2024-01-08 00:39:32 +01:00
parent 03bf72f690
commit 2c6b475f4e

View File

@ -204,13 +204,11 @@ macro_rules! run {
/// This macro should only be invoked only once since it is setting the global logging state of the application.
#[macro_export]
macro_rules! with_class {
( $x:expr, $l:expr, $p:ident ) => {
{
( $x:expr, $l:expr, $p:ident ) => {{
static LOGGER: ::embassy_usb_logger::UsbLogger<$x> = ::embassy_usb_logger::UsbLogger::new();
unsafe {
let _ = ::log::set_logger_racy(&LOGGER).map(|()| log::set_max_level_racy($l));
}
LOGGER.create_future_from_class($p)
}
};
}};
}