From ee64b8501f335537dc84ddf5a3ec626aece3a004 Mon Sep 17 00:00:00 2001 From: Tsukasa OI Date: Sat, 31 May 2025 05:06:05 +0000 Subject: [PATCH] stdarch-test: Modernization of the coding style It modernizes the coding style of the crate stdarch-test by fixing Clippy warnings. Clippy: rust version 1.89.0-nightly (6f6971078 2025-05-28) Number of Fixed Warnings: 1/1 --- library/stdarch/crates/stdarch-test/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/stdarch/crates/stdarch-test/src/lib.rs b/library/stdarch/crates/stdarch-test/src/lib.rs index 977b4b46adbd..f6614f6d51c9 100644 --- a/library/stdarch/crates/stdarch-test/src/lib.rs +++ b/library/stdarch/crates/stdarch-test/src/lib.rs @@ -71,7 +71,7 @@ pub fn assert(shim_addr: usize, fnname: &str, expected: &str) { //eprintln!(" function: {:?}", function); let mut instrs = &function.instrs[..]; - while instrs.last().map_or(false, |s| s == "nop" || s == "int3") { + while instrs.last().is_some_and(|s| s == "nop" || s == "int3") { instrs = &instrs[..instrs.len() - 1]; }