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:
parent
9610536476
commit
ee64b8501f
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue