Skip to content

Commit

Permalink
chore: fix elided lifetimes clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
manhunto committed Dec 6, 2024
1 parent debe8c0 commit f94d378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solutions/year2023/day08.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ impl Solution for Day08 {
}

impl Day08 {
fn parse_navigation<'a>(&'a self, input: &'a str) -> Cycle<Chars<'_>> {
fn parse_navigation<'a>(&'a self, input: &'a str) -> Cycle<Chars<'a>> {
input.lines().next().unwrap().chars().cycle()
}

fn parse_instructions<'a>(&'a self, input: &'a str) -> HashMap<&str, (&str, &str)> {
fn parse_instructions<'a>(&'a self, input: &'a str) -> HashMap<&'a str, (&'a str, &'a str)> {
let lines = input.lines().skip(2);
let re = Regex::new(r"^([0-9A-Z]{3}) = \(([0-9A-Z]{3}), ([0-9A-Z]{3})\)$").unwrap();

Expand Down

0 comments on commit f94d378

Please sign in to comment.