Skip to content

Commit

Permalink
Fix clippy warnings on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Jan 9, 2024
1 parent ef49450 commit 77a00b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows.rs
Expand Up @@ -22,7 +22,7 @@ impl Semaphore {
pub unsafe fn new(name: &str, cnt: usize) -> Result<Semaphore> {
let name = format!(
r"Global\{}-{}",
name.replace(r"\", ""),
name.replace('\\', ""),
Semaphore::hash::<_>(&(name, "ipc-rs"))
);
let mut name = name.bytes().map(|b| b as u16).collect::<Vec<u16>>();
Expand Down

0 comments on commit 77a00b5

Please sign in to comment.