diff --git a/mctp-estack/src/lib.rs b/mctp-estack/src/lib.rs index 82bf375..6034703 100644 --- a/mctp-estack/src/lib.rs +++ b/mctp-estack/src/lib.rs @@ -29,6 +29,9 @@ #![forbid(unsafe_code)] #![allow(clippy::int_plus_one)] #![allow(clippy::too_many_arguments)] +// defmt does not currently allow inline format arguments, so we don't want +// those reworked when using the log crate either. +#![allow(clippy::uninlined_format_args)] /// Re-exported so that callers can use the same `heapless` version. /// diff --git a/mctp-usb-embassy/src/lib.rs b/mctp-usb-embassy/src/lib.rs index cc909bb..5c577c0 100644 --- a/mctp-usb-embassy/src/lib.rs +++ b/mctp-usb-embassy/src/lib.rs @@ -4,6 +4,9 @@ */ #![no_std] #![forbid(unsafe_code)] +// defmt does not currently allow inline format arguments, so we don't want +// those reworked when using the log crate either. +#![allow(clippy::uninlined_format_args)] //! # MCTP over USB transport for `embassy-usb`. //! diff --git a/pldm-fw/src/ua.rs b/pldm-fw/src/ua.rs index 88897ab..9e4c2fc 100644 --- a/pldm-fw/src/ua.rs +++ b/pldm-fw/src/ua.rs @@ -435,7 +435,7 @@ where progress(&u); } else { - error!("firmware transfer error: 0x{:02x}", res); + error!("firmware transfer error: 0x{res:02x}"); } let mut fw_resp = fw_req.response(); fw_resp.cc = 0;