Fix Clippy warnings in util
crate (#8721)
This PR fixes a number of Clippy warnings in the `util` crate. Release Notes: - N/A
This commit is contained in:
parent
0ac203bde0
commit
c19587d4e4
4 changed files with 20 additions and 16 deletions
|
@ -459,7 +459,7 @@ mod tests {
|
|||
let path = Path::new("/work/node_modules");
|
||||
let path_matcher = PathMatcher::new("**/node_modules/**").unwrap();
|
||||
assert!(
|
||||
path_matcher.is_match(&path),
|
||||
path_matcher.is_match(path),
|
||||
"Path matcher {path_matcher} should match {path:?}"
|
||||
);
|
||||
}
|
||||
|
@ -469,7 +469,7 @@ mod tests {
|
|||
let path = Path::new("/Users/someonetoignore/work/zed/zed.dev/node_modules");
|
||||
let path_matcher = PathMatcher::new("**/node_modules/**").unwrap();
|
||||
assert!(
|
||||
path_matcher.is_match(&path),
|
||||
path_matcher.is_match(path),
|
||||
"Path matcher {path_matcher} should match {path:?}"
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue