From c6e661d80bc9654583771f2ccd00aa1bf4a3e28a Mon Sep 17 00:00:00 2001 From: Keith Hall Date: Wed, 18 Mar 2026 22:25:07 +0200 Subject: [PATCH] cargo fmt --- build/syntax_mapping.rs | 8 +++++--- src/syntax_mapping/builtin.rs | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build/syntax_mapping.rs b/build/syntax_mapping.rs index 17722f67..11d778e3 100644 --- a/build/syntax_mapping.rs +++ b/build/syntax_mapping.rs @@ -165,9 +165,11 @@ impl<'de> serde::Deserialize<'de> for Matcher { let raw = RawMatcher::deserialize(deserializer)?; match raw { RawMatcher::Simple(s) => Matcher::from_str(&s).map_err(serde::de::Error::custom), - RawMatcher::Full { glob, case_sensitive } => { - let mut matcher = - Matcher::from_str(&glob).map_err(serde::de::Error::custom)?; + RawMatcher::Full { + glob, + case_sensitive, + } => { + let mut matcher = Matcher::from_str(&glob).map_err(serde::de::Error::custom)?; matcher.case = if case_sensitive { Case::Sensitive } else { diff --git a/src/syntax_mapping/builtin.rs b/src/syntax_mapping/builtin.rs index 41007be5..79d298c3 100644 --- a/src/syntax_mapping/builtin.rs +++ b/src/syntax_mapping/builtin.rs @@ -54,8 +54,7 @@ include!(concat!( /// /// Used internally by `Lazy>`'s lazy evaluation closure. fn build_matcher_fixed(from: &str, case: Case) -> GlobMatcher { - make_glob_matcher(from, case) - .expect("A builtin fixed glob matcher failed to compile") + make_glob_matcher(from, case).expect("A builtin fixed glob matcher failed to compile") } /// Join a list of matcher segments to create a glob string, replacing all