diff options
Diffstat (limited to 'ripple/fossil/src')
-rw-r--r-- | ripple/fossil/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ripple/fossil/src/lib.rs b/ripple/fossil/src/lib.rs index 6fb5269..c7957ba 100644 --- a/ripple/fossil/src/lib.rs +++ b/ripple/fossil/src/lib.rs @@ -19,12 +19,12 @@ pub struct Store { } impl Store { - pub fn open<P: AsRef<Path>>(path: P) -> io::Result<Store> { + pub fn open(path: impl AsRef<Path>) -> io::Result<Store> { let db = sled::open(path)?; Ok(Store { db }) } - pub fn add_path<P: AsRef<Path>>(&self, path: P) -> Node { + pub fn add_path(&self, path: impl AsRef<Path>) -> Node { let path = path.as_ref(); let meta = fs::symlink_metadata(path).unwrap(); |