Skip to content

Commit 0389745

Browse files
committed
Resolve clippy::assign_op_pattern
error: manual implementation of an assign operation --> src/helpers.rs:673:17 | 673 | len = len + size1; | ^^^^^^^^^^^^^^^^^ help: replace it with: `len += size1` | = note: `-D clippy::assign-op-pattern` implied by `-D clippy::all` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
1 parent b0a5172 commit 0389745

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
670670
if byte == 0 {
671671
break;
672672
} else {
673-
len = len + size1;
673+
len += size1;
674674
}
675675
}
676676

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#![allow(clippy::cast_lossless)]
1111
// TODO: Uncategorized. Some of these we'll want to fix, some keep ignored.
1212
#![allow(
13-
clippy::assign_op_pattern,
1413
clippy::clone_on_copy,
1514
clippy::collapsible_else_if,
1615
clippy::collapsible_if,

0 commit comments

Comments
 (0)