From 8d5f995a010eadcc70c6e933ca0facab133bbef4 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 12 Jun 2023 16:37:36 +0200 Subject: [PATCH] usb-logger: fix breakage in log 0.4.19 https://github.com/rust-lang/log/issues/567 --- embassy-usb-logger/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-usb-logger/src/lib.rs b/embassy-usb-logger/src/lib.rs index 1d8dd13c..6e50c40b 100644 --- a/embassy-usb-logger/src/lib.rs +++ b/embassy-usb-logger/src/lib.rs @@ -138,7 +138,7 @@ macro_rules! run { ( $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($l)); + let _ = ::log::set_logger_racy(&LOGGER).map(|()| log::set_max_level_racy($l)); } let _ = LOGGER.run(&mut ::embassy_usb_logger::LoggerState::new(), $p).await; };