Bug 1872920 - Fix building mozwer-rust for rust version 1.69.0 a=diannaS

Differential Revision: https://phabricator.services.mozilla.com/D203050
This commit is contained in:
Gabriele Svelto 2024-02-28 22:17:06 +00:00
parent b695e83618
commit 53afb15c73

View File

@ -41,7 +41,11 @@ impl ProcessReader {
let name = self.get_module_name(module);
// Crude way of mimicking Windows lower-case comparisons but
// sufficient for our use-cases.
name.is_some_and(|name| name.eq_ignore_ascii_case(module_name))
if let Some(name) = name {
name.eq_ignore_ascii_case(module_name)
} else {
false
}
})
.find_map(|&module| {
self.get_module_info(module).and_then(|info| {