Skip to content

Commit bed9d9e

Browse files
committed
cargo dev fmt
1 parent 5d13b15 commit bed9d9e

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

clippy_lints/src/copies.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,7 @@ fn lint_same_fns_in_if_cond(cx: &LateContext<'_, '_>, conds: &[&Expr<'_>]) {
242242

243243
/// Implementation of `MATCH_SAME_ARMS`.
244244
fn lint_match_arms<'tcx>(cx: &LateContext<'_, 'tcx>, expr: &Expr<'_>) {
245-
fn same_bindings<'tcx>(
246-
lhs: &FxHashMap<Symbol, Ty<'tcx>>,
247-
rhs: &FxHashMap<Symbol, Ty<'tcx>>,
248-
) -> bool {
245+
fn same_bindings<'tcx>(lhs: &FxHashMap<Symbol, Ty<'tcx>>, rhs: &FxHashMap<Symbol, Ty<'tcx>>) -> bool {
249246
lhs.len() == rhs.len()
250247
&& lhs
251248
.iter()

clippy_lints/src/methods/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ use crate::utils::{
2727
get_arg_name, get_parent_expr, get_trait_def_id, has_iter_method, implements_trait, in_macro, is_copy,
2828
is_ctor_or_promotable_const_function, is_expn_of, is_type_diagnostic_item, iter_input_pats, last_path_segment,
2929
match_def_path, match_qpath, match_trait_method, match_type, match_var, method_calls, method_chain_args, paths,
30-
remove_blocks, return_ty, single_segment_path, snippet, snippet_with_applicability,
31-
snippet_with_macro_callsite, span_lint, span_lint_and_help, span_lint_and_note, span_lint_and_sugg,
32-
span_lint_and_then, sugg, walk_ptrs_ty, walk_ptrs_ty_depth, SpanlessEq,
30+
remove_blocks, return_ty, single_segment_path, snippet, snippet_with_applicability, snippet_with_macro_callsite,
31+
span_lint, span_lint_and_help, span_lint_and_note, span_lint_and_sugg, span_lint_and_then, sugg, walk_ptrs_ty,
32+
walk_ptrs_ty_depth, SpanlessEq,
3333
};
3434

3535
declare_clippy_lint! {

clippy_lints/src/types.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use rustc_hir::{
1717
use rustc_lint::{LateContext, LateLintPass, LintContext};
1818
use rustc_middle::hir::map::Map;
1919
use rustc_middle::lint::in_external_macro;
20-
use rustc_middle::ty::{self, InferTy, Ty, TyCtxt, TypeckTables, TyS};
20+
use rustc_middle::ty::{self, InferTy, Ty, TyCtxt, TyS, TypeckTables};
2121
use rustc_session::{declare_lint_pass, declare_tool_lint, impl_lint_pass};
2222
use rustc_span::hygiene::{ExpnKind, MacroKind};
2323
use rustc_span::source_map::Span;
@@ -31,8 +31,8 @@ use crate::utils::paths;
3131
use crate::utils::{
3232
clip, comparisons, differing_macro_contexts, higher, in_constant, int_bits, is_type_diagnostic_item,
3333
last_path_segment, match_def_path, match_path, method_chain_args, multispan_sugg, numeric_literal::NumericLiteral,
34-
qpath_res, sext, snippet, snippet_opt, snippet_with_applicability, snippet_with_macro_callsite,
35-
span_lint, span_lint_and_help, span_lint_and_sugg, span_lint_and_then, unsext,
34+
qpath_res, sext, snippet, snippet_opt, snippet_with_applicability, snippet_with_macro_callsite, span_lint,
35+
span_lint_and_help, span_lint_and_sugg, span_lint_and_then, unsext,
3636
};
3737

3838
declare_clippy_lint! {

0 commit comments

Comments
 (0)