summary refs log tree commit diff
path: root/ripple/fossil/src
diff options
context:
space:
mode:
authoredef <edef@unfathomable.blue>2021-08-22 14:38:50 +0000
committeredef <edef@unfathomable.blue>2021-08-22 14:38:50 +0000
commitd4a5ae81c5206a06ff2167f92731c0a911707076 (patch)
treec46a8b834eb02457f0fd41a93d9cd53e353ec722 /ripple/fossil/src
parentc03ab393b05b35330cd5f2273c4798c512e515e9 (diff)
downloadunf-legacy-d4a5ae81c5206a06ff2167f92731c0a911707076.tar.zst
ripple/fossil: prefer anonymous type parameters
This is mostly a stylistic distinction, but it helps with readability.

Change-Id: Ia6b3dca53638f12bcfd498b5f36e7abf16fd061a
Diffstat (limited to 'ripple/fossil/src')
-rw-r--r--ripple/fossil/src/lib.rs4
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();