Fix new Clippy lints

This commit is contained in:
Robbert van der Helm
2023-01-06 16:07:42 +01:00
parent 935bf6f7f3
commit dfeb8164ca
8 changed files with 13 additions and 15 deletions

View File

@@ -24,7 +24,7 @@ pub fn exported<P: AsRef<Path>>(binary: P, symbol: &str) -> Result<bool> {
};
// XXX: Why are all exported symbols on macOS prefixed with an underscore?
let symbol = format!("_{}", symbol);
let symbol = format!("_{symbol}");
Ok(obj.exports()?.into_iter().any(|sym| sym.name == symbol))
}