Skip to content

Commit b05aeaa

Browse files
committed
Run fmt
1 parent adb7fc6 commit b05aeaa

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

clippy_lints/src/future_not_send.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,8 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend {
9292
|db| {
9393
cx.tcx.infer_ctxt().enter(|infcx| {
9494
for FulfillmentError { obligation, .. } in send_errors {
95-
infcx.maybe_note_obligation_cause_for_async_await(
96-
db,
97-
&obligation,
98-
);
99-
if let Trait(trait_pred, _) =
100-
obligation.predicate.skip_binders()
101-
{
95+
infcx.maybe_note_obligation_cause_for_async_await(db, &obligation);
96+
if let Trait(trait_pred, _) = obligation.predicate.skip_binders() {
10297
db.note(&format!(
10398
"`{}` doesn't implement `{}`",
10499
trait_pred.self_ty(),

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,9 +1668,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
16681668
if let ty::Opaque(def_id, _) = *ret_ty.kind() {
16691669
// one of the associated types must be Self
16701670
for &(predicate, _span) in cx.tcx.explicit_item_bounds(def_id) {
1671-
if let ty::PredicateAtom::Projection(projection_predicate) =
1672-
predicate.skip_binders()
1673-
{
1671+
if let ty::PredicateAtom::Projection(projection_predicate) = predicate.skip_binders() {
16741672
// walk the associated type and check for Self
16751673
if contains_ty(projection_predicate.ty, self_ty) {
16761674
return;

clippy_lints/src/utils/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,8 +1287,7 @@ pub fn is_must_use_ty<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool {
12871287
ty::Opaque(ref def_id, _) => {
12881288
for (predicate, _) in cx.tcx.explicit_item_bounds(*def_id) {
12891289
if let ty::PredicateAtom::Trait(trait_predicate, _) = predicate.skip_binders() {
1290-
if must_use_attr(&cx.tcx.get_attrs(trait_predicate.trait_ref.def_id)).is_some()
1291-
{
1290+
if must_use_attr(&cx.tcx.get_attrs(trait_predicate.trait_ref.def_id)).is_some() {
12921291
return true;
12931292
}
12941293
}

0 commit comments

Comments
 (0)