Apply clippy::match_like_matches_macro

This commit is contained in:
Eric Huss 2023-05-13 09:55:51 -07:00
parent d8f171a996
commit c3155e2642
1 changed files with 2 additions and 4 deletions

View File

@ -628,10 +628,8 @@ fn edit_url_has_configured_src_dir_edit_url() {
}
fn remove_absolute_components(path: &Path) -> impl Iterator<Item = Component> + '_ {
path.components().skip_while(|c| match c {
Component::Prefix(_) | Component::RootDir => true,
_ => false,
})
path.components()
.skip_while(|c| matches!(c, Component::Prefix(_) | Component::RootDir))
}
/// Checks formatting of summary names with inline elements.