Skip to content

Commit

Permalink
new but unrelated clippy lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Jul 29, 2024
1 parent 566610b commit 2a40261
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/libs/bindgen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,6 @@ fn extension(path: &str) -> &str {
}

fn directory(path: &str) -> &str {
path.rsplit_once(&['/', '\\'])
path.rsplit_once(['/', '\\'])
.map_or("", |(directory, _)| directory)
}
4 changes: 1 addition & 3 deletions crates/libs/bindgen/src/winmd/writer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 2a40261

Please sign in to comment.