summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 569f964..3ffbb69 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -12,9 +12,9 @@ use std::panic;
use std::path::Path;
use std::process;
-fn create_and_open_dir<P: AsRef<Path> + Copy>(
+fn create_and_open_dir<P: AsRef<Path> + ?Sized>(
d: &Dir,
- path: P,
+ path: &P,
) -> std::io::Result<Dir> {
if let Err(e) = d.create_dir(path) {
if e.kind() != ErrorKind::AlreadyExists {