diff --git a/src/tools/process_locker.rs b/src/tools/process_locker.rs index 8a21a9aa..45c3ab22 100644 --- a/src/tools/process_locker.rs +++ b/src/tools/process_locker.rs @@ -85,7 +85,7 @@ impl ProcessLocker { /// Create a new instance for the specified file. /// /// This simply creates the file if it does not exist. - pub fn new(lockfile: &str) -> Result>, Error> { + pub fn new>(lockfile: P) -> Result>, Error> { let file = std::fs::OpenOptions::new() .create(true)