diff --git a/uefi-test-runner/examples/timestamp.rs b/uefi-test-runner/examples/timestamp.rs index e2daa854a..011b2ce4c 100644 --- a/uefi-test-runner/examples/timestamp.rs +++ b/uefi-test-runner/examples/timestamp.rs @@ -51,14 +51,14 @@ pub fn test_timestamp() { .expect("Founded Timestamp Protocol but open failed"); // ANCHOR: text let timestamp = timestamp_proto.get_timestamp(); - info!("Timestamp Protocol's timestamp: {:?}", timestamp); + info!("Timestamp Protocol's timestamp: {timestamp:?}"); let properties = timestamp_proto.get_properties(); - info!("Timestamp Protocol's properties: {:?}", properties); + info!("Timestamp Protocol's properties: {properties:?}"); // ANCHOR_END: text } Err(err) => { - warn!("Failed to found Timestamp Protocol: {:?}", err); + warn!("Failed to found Timestamp Protocol: {err}"); } } } diff --git a/uefi-test-runner/src/main.rs b/uefi-test-runner/src/main.rs index 2d05191f6..e160b5a2c 100644 --- a/uefi-test-runner/src/main.rs +++ b/uefi-test-runner/src/main.rs @@ -2,6 +2,8 @@ #![no_std] #![no_main] +// TODO: https://github.com/rust-osdev/uefi-rs/issues/1687 +#![expect(clippy::uninlined_format_args, mismatched_lifetime_syntaxes)] #[macro_use] extern crate log; diff --git a/uefi/src/lib.rs b/uefi/src/lib.rs index f805cc9dc..60ac87b71 100644 --- a/uefi/src/lib.rs +++ b/uefi/src/lib.rs @@ -244,6 +244,12 @@ unsafe_op_in_unsafe_fn, unused )] +// TODO: https://github.com/rust-osdev/uefi-rs/issues/1687 +#![expect( + clippy::uninlined_format_args, + clippy::unnecessary_unwrap, + mismatched_lifetime_syntaxes +)] #[cfg(feature = "alloc")] extern crate alloc; diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 3677cce47..0927fc21d 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -1,5 +1,8 @@ // SPDX-License-Identifier: MIT OR Apache-2.0 +// TODO: https://github.com/rust-osdev/uefi-rs/issues/1687 +#![expect(clippy::collapsible_if)] + mod arch; mod cargo; mod check_raw;