Skip to content

Commit 3b71321

Browse files
committed
mctp-estack, mctp-usb-embassy: suppress clippy for inline format args
The format macros may be defmt, which does not allow inline. Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
1 parent 11e9e3e commit 3b71321

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

mctp-estack/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#![forbid(unsafe_code)]
3030
#![allow(clippy::int_plus_one)]
3131
#![allow(clippy::too_many_arguments)]
32+
// defmt does not currently allow inline format arguments, so we don't want
33+
// those reworked when using the log crate either.
34+
#![allow(clippy::uninlined_format_args)]
3235

3336
/// Re-exported so that callers can use the same `heapless` version.
3437
///

mctp-usb-embassy/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
*/
55
#![no_std]
66
#![forbid(unsafe_code)]
7+
// defmt does not currently allow inline format arguments, so we don't want
8+
// those reworked when using the log crate either.
9+
#![allow(clippy::uninlined_format_args)]
710

811
//! # MCTP over USB transport for `embassy-usb`.
912
//!

0 commit comments

Comments
 (0)