Skip to content

Commit

Permalink
Upgrade Rust version to 1.83.0
Browse files Browse the repository at this point in the history
Also update all dependencies and fix a few new lints
  • Loading branch information
Daedrus committed Dec 18, 2024
1 parent e9396ad commit bf7f89b
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3

- name: "Install Rust toolchain"
uses: dtolnay/rust-toolchain@1.78.0
uses: dtolnay/rust-toolchain@1.83.0

- name: "Build all workspace solutions"
run: cargo build
Expand Down
2 changes: 1 addition & 1 deletion 2015/day10_elves_look_elves_say/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::io::{BufRead, Cursor};
fn look_and_say_slow(input: &str) -> String {
input
.chars()
.group_by(|&x| x)
.chunk_by(|&x| x)
.into_iter()
.map(|(_, r)| r.collect())
.collect::<Vec<String>>()
Expand Down
4 changes: 2 additions & 2 deletions 2015/day20_infinite_elves_and_infinite_houses/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn part1(input: &mut impl BufRead) -> String {
.parse::<u64>()
.unwrap();

for house in 1..=std::u64::MAX {
for house in 1..=u64::MAX {
if divisors!(house).sum::<u64>() * 10 >= num {
return house.to_string();
}
Expand All @@ -47,7 +47,7 @@ fn part2(input: &mut impl BufRead) -> String {
.parse::<u64>()
.unwrap();

for house in 1..=std::u64::MAX {
for house in 1..=u64::MAX {
if divisors!(house).filter(|d| *d * 50 >= house).sum::<u64>() * 11 >= num {
return house.to_string();
}
Expand Down
2 changes: 1 addition & 1 deletion 2023/day11_cosmic_expansion/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use itertools::Itertools;
use log::{debug, info};
use ndarray::Array2;
use std::{cmp, i64};
use std::cmp;
use std::{
fs::File,
io::{self, BufRead, BufReader, Seek},
Expand Down
2 changes: 1 addition & 1 deletion 2023/day12_hot_springs/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use log::{info, debug};
use std::{
fs::File,
io::{self, BufRead, BufReader}, usize, collections::VecDeque,
io::{self, BufRead, BufReader}, collections::VecDeque,
};

#[derive(Debug)]
Expand Down
1 change: 0 additions & 1 deletion 2023/day18_lavaduct_lagoon/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use nom::{
character::complete::{self, multispace1, alpha1},
sequence::tuple,
};
use std::usize;
use std::{
fs::File,
io::{self, BufRead, BufReader},
Expand Down
146 changes: 96 additions & 50 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bf7f89b

Please sign in to comment.