Apply clippy::match_like_matches_macro
This commit is contained in:
parent
d8f171a996
commit
c3155e2642
|
@ -628,10 +628,8 @@ fn edit_url_has_configured_src_dir_edit_url() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn remove_absolute_components(path: &Path) -> impl Iterator<Item = Component> + '_ {
|
fn remove_absolute_components(path: &Path) -> impl Iterator<Item = Component> + '_ {
|
||||||
path.components().skip_while(|c| match c {
|
path.components()
|
||||||
Component::Prefix(_) | Component::RootDir => true,
|
.skip_while(|c| matches!(c, Component::Prefix(_) | Component::RootDir))
|
||||||
_ => false,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Checks formatting of summary names with inline elements.
|
/// Checks formatting of summary names with inline elements.
|
||||||
|
|
Loading…
Reference in New Issue