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 2f5d1c7 commit 20548ebCopy full SHA for 20548eb
clippy_lints/src/arc_with_non_send_sync.rs
@@ -47,10 +47,7 @@ impl LateLintPass<'_> for ArcWithNonSendSync {
47
if let ExprKind::Path(func_path) = func.kind;
48
if last_path_segment(&func_path).ident.name == sym::new;
49
if let arg_ty = cx.typeck_results().expr_ty(arg);
50
- if match arg_ty.kind() {
51
- ty::Param(_) => false,
52
- _ => true,
53
- };
+ if !matches!(arg_ty.kind(), ty::Param(_));
54
if !cx.tcx
55
.lang_items()
56
.sync_trait()
0 commit comments