Skip to content

Commit 3895acd

Browse files
author
Kai Luo
committed
Use (a..b).contains()
1 parent f96a8d4 commit 3895acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/symbolize/gimli/xcoff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl<'a> Object<'a> {
5959
Err(i) => i.checked_sub(1)?,
6060
};
6161
let sym = self.syms.get(i)?;
62-
if sym.address <= addr && addr <= sym.address + sym.size {
62+
if (sym.address..sym.address + sym.size).contains(&addr) {
6363
Some(sym.name.strip_prefix(".")?.as_bytes())
6464
} else {
6565
None

0 commit comments

Comments
 (0)