Skip to content

[Rust] Make LowLevelIL{Expression,Instruction} implement Copy #564

[Rust] Make LowLevelIL{Expression,Instruction} implement Copy

[Rust] Make LowLevelIL{Expression,Instruction} implement Copy #564

Triggered via pull request May 27, 2025 18:45
Status Failure
Total duration 48s
Artifacts 1

rust.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
cargo clippy
Error: Clippy has exited with exit code 101
non-canonical implementation of `clone` on a `Copy` type: rust/src/low_level_il/instruction.rs#L109
error: non-canonical implementation of `clone` on a `Copy` type --> rust/src/low_level_il/instruction.rs:109:29 | 109 | fn clone(&self) -> Self { | _____________________________^ 110 | | Self { 111 | | function: self.function, 112 | | index: self.index, 113 | | } 114 | | } | |_____^ help: change this to: `{ *self }` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_clone_impl
non-canonical implementation of `clone` on a `Copy` type: rust/src/low_level_il/block.rs#L71
error: non-canonical implementation of `clone` on a `Copy` type --> rust/src/low_level_il/block.rs:71:29 | 71 | fn clone(&self) -> Self { | _____________________________^ 72 | | LowLevelILBlock { 73 | | function: self.function, 74 | | } 75 | | } | |_____^ help: change this to: `{ *self }` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_clone_impl = note: `-D clippy::non-canonical-clone-impl` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::non_canonical_clone_impl)]`
licensing
New version for cargo-about available: 0.7.1

Artifacts

Produced during runtime
Name Size Digest
license Expired
23.1 KB
sha256:12cade112ec3407e1c71868421ddc6ee3ad22a9358db766bcb6757fa83f3399b