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 e36bb3a commit 4e83034Copy full SHA for 4e83034
tyrga-lib/src/lib.rs
@@ -17,6 +17,7 @@
17
#![deny(unused_variables)]
18
#![deny(clippy::inefficient_to_string)]
19
#![deny(clippy::comparison_chain)]
20
+#![deny(clippy::redundant_clone)]
21
22
// make macros visible to later modules
23
#[macro_use]
tyrga-lib/src/tenyr.rs
@@ -662,6 +662,10 @@ impl fmt::Display for Instruction {
662
663
#[cfg(test)]
664
fn instruction_test_cases() -> Vec<(&'static str, Instruction)> {
665
+ // for regularity, allow clones on every line in the tests below, even the ones that do not
666
+ // need it
667
+ #![allow(clippy::redundant_clone)]
668
+
669
use InstructionType::*;
670
use MemoryOpType::*;
671
use Opcode::*;
0 commit comments