Skip to content

Commit e52a7dd

Browse files
Fix comment
1 parent 436f0a5 commit e52a7dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/transmute/missing_transmute_annotations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub(super) fn check<'tcx>(
6565
if let Some(local) = get_parent_local_binding_ty(cx, expr_hir_id) {
6666
// ... which does have type annotations.
6767
if let Some(ty) = local.ty
68-
// If this is a `let x: _ =`, we shouldn't lint.
68+
// If this is a `let x: _ =`, we should lint.
6969
&& !matches!(ty.kind, TyKind::Infer)
7070
{
7171
return false;

0 commit comments

Comments
 (0)