Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ef91de6

Browse files
committed
Run cargo dev fmt
Signed-off-by: Joe Richey <[email protected]>
1 parent d2feccc commit ef91de6

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
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/trivially_copy_pass_by_ref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use rustc_middle::ty;
1212
use rustc_session::{declare_tool_lint, impl_lint_pass};
1313
use rustc_span::Span;
1414
use rustc_target::abi::LayoutOf;
15-
use rustc_target::spec::Target;
1615
use rustc_target::spec::abi::Abi;
16+
use rustc_target::spec::Target;
1717

1818
declare_clippy_lint! {
1919
/// **What it does:** Checks for functions taking arguments by reference, where

0 commit comments

Comments
 (0)