mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
cargo fmt
This commit is contained in:
1 parent
031ba0953a
commit
c6e661d80b
2 files changed
+6
-5
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user