From c3155e264225e088f6ff48c42e93583593a07555 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 13 May 2023 09:55:51 -0700 Subject: [PATCH] Apply clippy::match_like_matches_macro --- tests/rendered_output.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/rendered_output.rs b/tests/rendered_output.rs index 886b01a4..813f70fd 100644 --- a/tests/rendered_output.rs +++ b/tests/rendered_output.rs @@ -628,10 +628,8 @@ fn edit_url_has_configured_src_dir_edit_url() { } fn remove_absolute_components(path: &Path) -> impl Iterator + '_ { - 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.