Skip to content

Commit

Permalink
chore: clean up some clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
tobz committed Dec 24, 2023
1 parent c04acc4 commit 3b3a991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metrics-util/src/layers/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl<R> Layer<R> for FilterLayer {
let mut automaton_builder = AhoCorasickBuilder::new();
let automaton = automaton_builder
.ascii_case_insensitive(self.case_insensitive)
.kind(self.use_dfa.then(|| AhoCorasickKind::DFA))
.kind(self.use_dfa.then_some(AhoCorasickKind::DFA))
.build(&self.patterns)
// Documentation for `AhoCorasickBuilder::build` states that the error here will be
// related to exceeding some internal limits, but that those limits should generally be
Expand Down
2 changes: 1 addition & 1 deletion metrics/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl GaugeValue {
///
/// While metrics do not necessarily need to be tied to a particular unit to be recorded, some
/// downstream systems natively support defining units and so they can be specified during registration.
#[derive(Clone, Copy, Debug, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum Unit {
/// Count.
Count,
Expand Down

0 comments on commit 3b3a991

Please sign in to comment.