Add check for control flow operator #151
GitHub Actions / clippy
failed
Oct 9, 2023 in 0s
clippy
1 error
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.73.0 (cc66ad468 2023-10-03)
- cargo 1.73.0 (9c4383fb5 2023-08-26)
- clippy 0.1.73 (cc66ad4 2023-10-03)
Annotations
Check failure on line 139 in vm-executor-wasmer/src/wasmer_breakpoints.rs
github-actions / clippy
borrow of moved value: `operator`
error[E0382]: borrow of moved value: `operator`
--> vm-executor-wasmer/src/wasmer_breakpoints.rs:139:37
|
134 | operator: Operator<'b>,
| -------- move occurs because `operator` has type `wasmer::wasmparser::Operator<'_>`, which does not implement the `Copy` trait
...
137 | state.push_operator(operator);
| -------- value moved here
138 |
139 | if is_control_flow_operator(&operator) {
| ^^^^^^^^^ value borrowed here after move
|
help: consider cloning the value if the performance cost is acceptable
|
137 | state.push_operator(operator.clone());
| ++++++++
Loading