We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05c1d1c commit 1f10a3eCopy full SHA for 1f10a3e
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(|i| i.opcode == iced_x86::Mnemonic::Int3 as u16).unwrap_or(false) {
+ while out.last().map_or(false, |i| i.opcode == iced_x86::Mnemonic::Int3 as u16) {
187
out.pop();
188
189
0 commit comments