diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7fffa06..3d82b9e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: runs-on: "ubuntu-latest" strategy: matrix: - rust-version: ["1.84.1", "stable"] + rust-version: ["1.87.0", "stable"] steps: - uses: "actions/checkout@v4.2.2" diff --git a/Cargo.toml b/Cargo.toml index c52a2d1..921b867 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,8 +5,8 @@ resolver = "2" [workspace.package] # name = "advent_of_code" version = "1.0.0" -edition = "2021" -rust-version = "1.84.1" +edition = "2024" +rust-version = "1.87.0" [workspace.dependencies] rayon = { version = "=1.10.0" } diff --git a/README.md b/README.md index b347319..95e9e67 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ The project is **tested** against the following [Rust](https://www.rust-lang.org/) versions: -- **Minimum Supported Rust Version (MSRV): v1.84.1** +- **Minimum Supported Rust Version (MSRV): v1.87.0** - **Latest Stable Version** ## Usage diff --git a/advent_2023/puzzle_2023_day_6/src/lib.rs b/advent_2023/puzzle_2023_day_6/src/lib.rs index 0392a61..0638608 100644 --- a/advent_2023/puzzle_2023_day_6/src/lib.rs +++ b/advent_2023/puzzle_2023_day_6/src/lib.rs @@ -39,7 +39,7 @@ impl RaceStrategy { pub fn part_1(input: &str) -> usize { fn get_numbers_from_line(line: &str) -> Vec { 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()