Skip to content

Commit 8c5d280

Browse files
committed
chore: update to Rust edition 2024
1 parent 3927359 commit 8c5d280

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: "ubuntu-latest"
1616
strategy:
1717
matrix:
18-
rust-version: ["1.84.1", "stable"]
18+
rust-version: ["1.87.0", "stable"]
1919
steps:
2020
- uses: "actions/checkout@v4.2.2"
2121

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ resolver = "2"
55
[workspace.package]
66
# name = "advent_of_code"
77
version = "1.0.0"
8-
edition = "2021"
9-
rust-version = "1.84.1"
8+
edition = "2024"
9+
rust-version = "1.87.0"
1010

1111
[workspace.dependencies]
1212
rayon = { version = "=1.10.0" }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
The project is **tested** against the following [Rust](https://www.rust-lang.org/) versions:
2828

29-
- **Minimum Supported Rust Version (MSRV): v1.84.1**
29+
- **Minimum Supported Rust Version (MSRV): v1.87.0**
3030
- **Latest Stable Version**
3131

3232
## Usage

advent_2023/puzzle_2023_day_6/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl RaceStrategy {
3939
pub fn part_1(input: &str) -> usize {
4040
fn get_numbers_from_line(line: &str) -> Vec<usize> {
4141
line.split(':')
42-
.last()
42+
.next_back()
4343
.unwrap_or_default()
4444
.split_ascii_whitespace()
4545
.map(|value| value.trim())
@@ -70,7 +70,7 @@ pub fn part_1(input: &str) -> usize {
7070
pub fn part_2(input: &str) -> usize {
7171
fn get_number_from_line(line: &str) -> usize {
7272
line.split(':')
73-
.last()
73+
.next_back()
7474
.unwrap_or_default()
7575
.replace(' ', "")
7676
.trim()

0 commit comments

Comments
 (0)