Skip to content

Commit aa446e7

Browse files
committed
Fix clippy lints on previous years
1 parent d7eac69 commit aa446e7

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

aoc_2021/src/day_12.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ struct ParseResult<'a> {
7676
end: NodeIndex,
7777
}
7878

79-
fn parse(input: &str) -> ParseResult {
79+
fn parse(input: &str) -> ParseResult<'_> {
8080
let mut graph = UnGraph::new_undirected();
8181
let mut nodes = HashMap::new();
8282

83-
fn make_node(name: &str) -> Node {
83+
fn make_node(name: &str) -> Node<'_> {
8484
Node {
8585
name,
8686
cave_type: if name == "start" || name == "end" {

aoc_2023/src/day_08.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl<'a> Map<'a> {
7373
}
7474
}
7575

76-
fn parse(input: &str) -> Map {
76+
fn parse(input: &str) -> Map<'_> {
7777
let (instructions, node_list) = input.split_once("\n\n").unwrap();
7878

7979
let mut nodes = HashMap::new();

aoc_2023/src/day_19.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ enum Rule<'a> {
127127
},
128128
}
129129

130-
fn parse(input: &str) -> (HashMap<&str, Vec<Rule>>, Vec<[u32; 4]>) {
130+
fn parse(input: &str) -> (HashMap<&str, Vec<Rule<'_>>>, Vec<[u32; 4]>) {
131131
let mut rules_out = HashMap::new();
132132
let mut shapes = Vec::new();
133133

aoc_2023/src/day_25.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct Wires<'a> {
2626
wire: Graph<&'a str, (), Undirected>,
2727
}
2828

29-
fn parse(input: &str) -> Wires {
29+
fn parse(input: &str) -> Wires<'_> {
3030
let mut nodes = HashMap::new();
3131
let mut wire = UnGraph::new_undirected();
3232

aoc_2024/src/day_25.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn part_a(input: &str) -> Answer {
3232
out.into()
3333
}
3434

35-
fn part_b(input: &str) -> Answer {
35+
fn part_b(_input: &str) -> Answer {
3636
Answer::Unimplemented
3737
}
3838

0 commit comments

Comments
 (0)