From 892bbf40cdb9630bd56c90d24061ab0da34084a7 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Mon, 29 Jan 2024 03:59:07 +0200 Subject: [PATCH] wip: add AsRef to visit_files --- src/support/visitor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support/visitor.rs b/src/support/visitor.rs index dee996a..5f17aa8 100644 --- a/src/support/visitor.rs +++ b/src/support/visitor.rs @@ -10,7 +10,7 @@ use { // one possible implementation of walking a directory only visiting files #[throws] -pub fn visit_files(dir: &Path, cb: &mut dyn for<'r> FnMut(&'r DirEntry) -> Result<()>) { +pub fn visit_files>(dir: P, cb: &mut dyn for<'r> FnMut(&'r DirEntry) -> Result<()>) { if dir.is_dir() { for entry in fs::read_dir(dir)? { let entry = entry?;