From abfc001f25756c1d9691e03f7105637d3f1c1c20 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 22 Mar 2019 09:41:32 +0100 Subject: [PATCH] src/tools/process_locker.rs: new() - use generic path parameter --- src/tools/process_locker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)