Skip to content

Commit

Permalink
Fix Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Oct 1, 2023
1 parent 1292a74 commit 4b2aeea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/rune/src/workspace/glob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl<'a> Matcher<'a> {
/// Perform an expansion in the filesystem.
fn expand_filesystem<M>(
&mut self,
path: &PathBuf,
path: &Path,
rest: &'a [Component<'a>],
mut m: M,
) -> Result<(), GlobError>
Expand All @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 4b2aeea

Please sign in to comment.