We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f10a3e commit 79f8e0eCopy full SHA for 79f8e0e
1 file changed
objdiff-core/src/arch/x86.rs
@@ -183,7 +183,7 @@ impl Arch for ArchX86 {
183
}
184
// Strip trailing int3 instructions (alignment padding) for x64
185
if matches!(self.arch, Architecture::X86_64) {
186
- while out.last().map_or(false, |i| i.opcode == iced_x86::Mnemonic::Int3 as u16) {
+ while out.last().is_some_and(|i| i.opcode == iced_x86::Mnemonic::Int3 as u16) {
187
out.pop();
188
189
0 commit comments