We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c12717 commit d5bdce7Copy full SHA for d5bdce7
clippy_lints/src/format_args.rs
@@ -544,8 +544,8 @@ impl<'tcx> FormatArgsExpr<'_, 'tcx> {
544
return true;
545
}
546
547
- // Even if `ty` is not in `self.ty_feature_map`, check whether `ty` implements `Deref` with with a
548
- // `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`.
549
if let Some(deref_trait_id) = self.cx.tcx.lang_items().deref_trait()
550
&& implements_trait(self.cx, ty, deref_trait_id, &[])
551
&& let Some(target_ty) = self.cx.get_associated_type(ty, deref_trait_id, "Target")
0 commit comments