From 4b2aeeadf9889e23ee1405d1ac26a71008dcd82e Mon Sep 17 00:00:00 2001 From: John-John Tedro Date: Sun, 1 Oct 2023 11:25:07 +0200 Subject: [PATCH] Fix Clippy --- crates/rune/src/workspace/glob.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/rune/src/workspace/glob.rs b/crates/rune/src/workspace/glob.rs index 68b7f3a5f..ff4df242c 100644 --- a/crates/rune/src/workspace/glob.rs +++ b/crates/rune/src/workspace/glob.rs @@ -86,7 +86,7 @@ impl<'a> Matcher<'a> { /// Perform an expansion in the filesystem. fn expand_filesystem( &mut self, - path: &PathBuf, + path: &Path, rest: &'a [Component<'a>], mut m: M, ) -> Result<(), GlobError> @@ -96,7 +96,7 @@ impl<'a> Matcher<'a> { let io_path = if path.as_os_str().is_empty() { Path::new(std::path::Component::CurDir.as_os_str()) } else { - path.as_path() + path }; match fs::metadata(io_path) { @@ -139,7 +139,7 @@ impl<'a> Matcher<'a> { let io_path = if path.as_os_str().is_empty() { Path::new(std::path::Component::CurDir.as_os_str()) } else { - path.as_path() + path }; match fs::metadata(io_path) {