Skip to content

Commit 45b75f4

Browse files
committed
Rust 1.86.0
1 parent 02ceb32 commit 45b75f4

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ edition = "2024"
99
homepage = "https://github.com/fornwall/advent-of-code"
1010
license = "MIT"
1111
repository = "https://github.com/fornwall/advent-of-code"
12-
rust-version = "1.85.0"
12+
rust-version = "1.86.0"
1313
version = "2024.21.0"
1414

1515
[profile.release]

crates/core/src/year2015/day08.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub fn solve(input: &Input) -> Result<usize, String> {
99
if !(line.starts_with('"') && line.ends_with('"') && line.len() >= 2) {
1010
return Err("Invalid input - not surrounded by quotes".to_string());
1111
}
12-
let line = &line[1..line.len() - 1].as_bytes();
12+
let line = &line.as_bytes()[1..line.len() - 1];
1313

1414
let mut idx = 0;
1515
// In part 2, 6 is for starting and trailing quote:

crates/core/src/year2018/day13.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ impl Cart {
6161
}
6262
}
6363

64-
fn advance(&mut self) -> bool {
64+
const fn advance(&mut self) -> bool {
6565
self.position.add(self.direction);
6666
self.position.is_outside_track()
6767
}
6868

69-
fn on_enter(&mut self, piece: &TrackPiece) {
69+
const fn on_enter(&mut self, piece: &TrackPiece) {
7070
match *piece {
7171
TrackPiece::TopRight | TrackPiece::BottomLeft => {
7272
self.direction = Vector {

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
2-
channel = "1.85.0"
2+
channel = "1.86.0"
33
components = ["rustfmt", "clippy"]
44
targets = ["wasm32-unknown-unknown"]

0 commit comments

Comments
 (0)