Skip to content

Commit e1c3d9e

Browse files
committed
rust: fix clippy warning
1 parent c7e965e commit e1c3d9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust/bear/src/config.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,8 @@ impl Validate for DuplicateFilter {
483483
/// Deduplicate the fields of the fields vector.
484484
fn validate(self) -> Result<Self> {
485485
let result = Self {
486-
by_fields: (&self.by_fields)
486+
by_fields: self
487+
.by_fields
487488
.iter()
488489
.cloned()
489490
.collect::<HashSet<_>>()

0 commit comments

Comments
 (0)