projects
/
advent_of_code_2024.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09840f8
)
Disable some warnings
author
Greg Burri
<greg.burri@gmail.com>
Thu, 29 Jan 2026 01:07:25 +0000
(
02:07
+0100)
committer
Greg Burri
<greg.burri@gmail.com>
Thu, 29 Jan 2026 01:07:25 +0000
(
02:07
+0100)
src/day13.rs
patch
|
blob
|
history
diff --git
a/src/day13.rs
b/src/day13.rs
index
3a34ded
..
23c1ae5
100644
(file)
--- a/
src/day13.rs
+++ b/
src/day13.rs
@@
-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()