Skip to content

Commit cee3a6a

Browse files
committed
clippy::field_reassign_with_default
1 parent 929f3d4 commit cee3a6a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/handlers/relabel.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,10 @@ fn match_pattern(pattern: &str, label: &str) -> anyhow::Result<MatchPatternResul
166166
};
167167

168168
let glob = glob::Pattern::new(pattern)?;
169-
let mut matchopts = glob::MatchOptions::default();
170-
matchopts.case_sensitive = false;
169+
let matchopts = glob::MatchOptions {
170+
case_sensitive: false,
171+
..Default::default()
172+
};
171173

172174
Ok(match (glob.matches_with(label, matchopts), inverse) {
173175
(true, false) => MatchPatternResult::Allow,

0 commit comments

Comments
 (0)