Skip to content

Commit

Permalink
wasm-bindgen-test-runner: Clippy improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
spigaz committed Apr 22, 2024
1 parent 926432b commit 7332314
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/cli/src/bin/wasm-bindgen-test-runner/tmp_dir_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::fs::File;
//use std::remove_file;
use std::ffi::OsStr;
use std::io::Error;
use std::path::Path;
use std::path::PathBuf;

pub struct TmpDirLock {
Expand All @@ -13,7 +14,7 @@ pub struct TmpDirLock {
}

impl TmpDirLock {
pub fn new(directory: &PathBuf) -> Result<Self, Error> {
pub fn new(directory: &Path) -> Result<Self, Error> {
let base = directory.parent().unwrap();
let name = directory.file_name().and_then(OsStr::to_str).unwrap();
let exclusive = &base.join(format!("{}-exclusive.lock", name));
Expand Down

0 comments on commit 7332314

Please sign in to comment.