mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-13 14:22:35 +00:00
Apply clippy::match_like_matches_macro
This commit is contained in:
parent
d8f171a996
commit
c3155e2642
1 changed files with 2 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue