From 4cbe83111532df3b1ee2b5c2ad4de424e15b4b9e Mon Sep 17 00:00:00 2001 From: Johannes Date: Tue, 14 Nov 2023 16:41:54 +0100 Subject: [PATCH] Removed warnings. --- src/tasks/day16.rs | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/tasks/day16.rs b/src/tasks/day16.rs index cb18fdc..8abbd04 100644 --- a/src/tasks/day16.rs +++ b/src/tasks/day16.rs @@ -266,7 +266,7 @@ struct Instruction { #[cfg(test)] mod test { - use crate::tasks::day16::{matches_count, parse, Instruction, Op, Registers}; + use crate::tasks::day16::{Instruction, matches_count, Op, parse, Registers}; #[test] fn example1() { @@ -277,6 +277,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_AddR() { let op = Op::AddR; let result = op.process( @@ -292,6 +293,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_AddI() { let op = Op::AddI; let result = op.process( @@ -307,6 +309,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_MulR() { let op = Op::MulR; let result = op.process( @@ -322,6 +325,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_MulI() { let op = Op::MulI; let result = op.process( @@ -337,6 +341,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_BanR() { let op = Op::BanR; let result = op.process( @@ -352,6 +357,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_BanI() { let op = Op::BanI; let result = op.process( @@ -367,6 +373,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_BorR() { let op = Op::BorR; let result = op.process( @@ -382,6 +389,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_BorI() { let op = Op::BorI; let result = op.process( @@ -397,6 +405,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_SetR() { let op = Op::SetR; let result = op.process( @@ -412,6 +421,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_SetI() { let op = Op::SetI; let result = op.process( @@ -427,6 +437,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_GtIR_true() { let op = Op::GtIR; let result = op.process( @@ -442,6 +453,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_GtIR_false() { let op = Op::GtIR; let result = op.process( @@ -457,6 +469,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_GtRI_true() { let op = Op::GtRI; let result = op.process( @@ -472,6 +485,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_GtRI_false() { let op = Op::GtRI; let result = op.process( @@ -487,6 +501,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_GtRR_true() { let op = Op::GtRR; let result = op.process( @@ -502,6 +517,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_GtRR() { let op = Op::GtRR; let result = op.process( @@ -517,6 +533,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_EqIR_true() { let op = Op::EqIR; let result = op.process( @@ -532,6 +549,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_EqIR_false() { let op = Op::EqIR; let result = op.process( @@ -547,6 +565,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_EqRI_true() { let op = Op::EqRI; let result = op.process( @@ -562,6 +581,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_EqRI_false() { let op = Op::EqRI; let result = op.process( @@ -577,6 +597,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_EqRR_true() { let op = Op::EqRR; let result = op.process( @@ -592,6 +613,7 @@ mod test { } #[test] + #[allow(non_snake_case)] fn test_EqRR_false() { let op = Op::EqRR; let result = op.process(