Skip to content

Commit 20548eb

Browse files
committed
Swapping to matches macro.
1 parent 2f5d1c7 commit 20548eb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clippy_lints/src/arc_with_non_send_sync.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ impl LateLintPass<'_> for ArcWithNonSendSync {
4747
if let ExprKind::Path(func_path) = func.kind;
4848
if last_path_segment(&func_path).ident.name == sym::new;
4949
if let arg_ty = cx.typeck_results().expr_ty(arg);
50-
if match arg_ty.kind() {
51-
ty::Param(_) => false,
52-
_ => true,
53-
};
50+
if !matches!(arg_ty.kind(), ty::Param(_));
5451
if !cx.tcx
5552
.lang_items()
5653
.sync_trait()

0 commit comments

Comments
 (0)