diff options
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |