Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Feb 7, 2025
1 parent 9c12717 commit d5bdce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/format_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,8 @@ impl<'tcx> FormatArgsExpr<'_, 'tcx> {
return true;
}

// Even if `ty` is not in `self.ty_feature_map`, check whether `ty` implements `Deref` with with a
// `Target` that is in `self.ty_feature_map`.
// Even if `ty` is not in `self.ty_feature_map`, check whether `ty` implements `Deref` with
// a `Target` that is in `self.ty_feature_map`.
if let Some(deref_trait_id) = self.cx.tcx.lang_items().deref_trait()
&& implements_trait(self.cx, ty, deref_trait_id, &[])
&& let Some(target_ty) = self.cx.get_associated_type(ty, deref_trait_id, "Target")
Expand Down

0 comments on commit d5bdce7

Please sign in to comment.