1
1
mirror of https://github.com/theoludwig/advent_of_code.git synced 2025-05-18 19:27:51 +02:00

chore: update to Rust edition 2024

This commit is contained in:
2025-05-18 11:56:50 +02:00
parent 3927359492
commit 8c5d280aa3
4 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@ impl RaceStrategy {
pub fn part_1(input: &str) -> usize {
fn get_numbers_from_line(line: &str) -> Vec<usize> {
line.split(':')
.last()
.next_back()
.unwrap_or_default()
.split_ascii_whitespace()
.map(|value| value.trim())
@ -70,7 +70,7 @@ pub fn part_1(input: &str) -> usize {
pub fn part_2(input: &str) -> usize {
fn get_number_from_line(line: &str) -> usize {
line.split(':')
.last()
.next_back()
.unwrap_or_default()
.replace(' ', "")
.trim()