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
This commit is contained in:
Tsukasa OI 2025-05-31 05:06:05 +00:00 committed by Amanieu d'Antras
parent 9610536476
commit ee64b8501f

View file

@ -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];
}