Disable some warnings
authorGreg Burri <greg.burri@gmail.com>
Thu, 29 Jan 2026 01:07:25 +0000 (02:07 +0100)
committerGreg Burri <greg.burri@gmail.com>
Thu, 29 Jan 2026 01:07:25 +0000 (02:07 +0100)
src/day13.rs

index 3a34ded..23c1ae5 100644 (file)
@@ -1,6 +1,6 @@
 use std::io::BufRead;
 
-use nalgebra::{stack, Vector2};
+use nalgebra::{Vector2, stack};
 use regex::Regex;
 
 type Equations = Vec<(Vector2<i64>, Vector2<i64>, Vector2<i64>)>;
@@ -43,6 +43,7 @@ pub fn add_10000000000000_to_xy(equations: Equations) -> Equations {
         .collect()
 }
 
+#[allow(clippy::toplevel_ref_arg)]
 pub fn nb_tokens(equations: &Equations) -> i64 {
     equations
         .iter()