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

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.