Skip to content

Commit

Permalink
Apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
la10736 committed Aug 13, 2023
1 parent 3173f62 commit 0788555
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rstest_macros/src/parse/rstest/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ impl FilesGlobReferences {

fn is_valid(&self, p: &RelativePath) -> bool {
if self.ignore_dot_files
&& p.components().any(|c| match c {
relative_path::Component::Normal(c) if c.starts_with('.') => true,
_ => false,
})
&& p.components()
.any(|c| matches!(c, relative_path::Component::Normal(c) if c.starts_with('.')))
{
return false;
}
Expand Down Expand Up @@ -381,7 +379,7 @@ fn render_file_description(file: &RelativePath) -> String {
relative_path::Component::ParentDir => description.push_str("_UP"),
relative_path::Component::Normal(segment) => description.push_str(segment),
}
description.push_str("/")
description.push('/')
}
description.pop();
description
Expand Down

0 comments on commit 0788555

Please sign in to comment.