Skip to content

Commit e647260

Browse files
a4lgAmanieu
authored andcommitted
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
1 parent 278ecc1 commit e647260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/stdarch-test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub fn assert(shim_addr: usize, fnname: &str, expected: &str) {
7171
//eprintln!(" function: {:?}", function);
7272

7373
let mut instrs = &function.instrs[..];
74-
while instrs.last().map_or(false, |s| s == "nop" || s == "int3") {
74+
while instrs.last().is_some_and(|s| s == "nop" || s == "int3") {
7575
instrs = &instrs[..instrs.len() - 1];
7676
}
7777

0 commit comments

Comments
 (0)