diff --git a/crates/libs/bindgen/src/lib.rs b/crates/libs/bindgen/src/lib.rs index a331c476e3..e9db3a17b9 100644 --- a/crates/libs/bindgen/src/lib.rs +++ b/crates/libs/bindgen/src/lib.rs @@ -292,6 +292,6 @@ fn extension(path: &str) -> &str { } fn directory(path: &str) -> &str { - path.rsplit_once(&['/', '\\']) + path.rsplit_once(['/', '\\']) .map_or("", |(directory, _)| directory) } diff --git a/crates/libs/bindgen/src/winmd/writer/mod.rs b/crates/libs/bindgen/src/winmd/writer/mod.rs index b485d7edf3..299eb206b6 100644 --- a/crates/libs/bindgen/src/winmd/writer/mod.rs +++ b/crates/libs/bindgen/src/winmd/writer/mod.rs @@ -45,9 +45,7 @@ impl Writer { MethodList: 0, }); - let name = name - .rsplit_once(&['/', '\\']) - .map_or(name, |(_, name)| name); + let name = name.rsplit_once(['/', '\\']).map_or(name, |(_, name)| name); writer.tables.Module.push(Module { Name: writer.strings.insert(name),