From 2a4026191a2a1581fd50fd798834983b491949d2 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Mon, 29 Jul 2024 14:33:30 -0500 Subject: [PATCH] new but unrelated clippy lint warning --- crates/libs/bindgen/src/lib.rs | 2 +- crates/libs/bindgen/src/winmd/writer/mod.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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),