Skip to content

Commit

Permalink
Make Clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Aug 6, 2024
1 parent abb62ab commit 299e891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/supplementary/redundant_reference/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl<'tcx> LateLintPass<'tcx> for RedundantReference {
let subfield_access = field_use
.subfield_accesses
.entry(subfield)
.or_insert((parent_ty.to_string(), HashSet::default()));
.or_insert_with(|| (parent_ty.to_string(), HashSet::default()));
subfield_access
.1
.insert(subfield.span.with_lo(operand.span.hi()));
Expand Down

0 comments on commit 299e891

Please sign in to comment.