Skip to content

Commit

Permalink
rust became less ergonomic in rustc 1.80.0-nightly (b92758a9a 2024-05…
Browse files Browse the repository at this point in the history
…-20)
  • Loading branch information
andy-k committed May 21, 2024
1 parent 4069b2a commit 7e3a926
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ fn build_leaves_f32<Readable: std::io::Read>(
build_layout: build::BuildLayout,
) -> error::Returns<Vec<u8>> {
let alphabet_reader = alphabet::AlphabetReader::new_for_racks(&alph);
let mut leaves_map = fash::MyHashMap::default();
let mut leaves_map = fash::MyHashMap::<bites::Bites, _>::default();
let mut csv_reader = csv::ReaderBuilder::new().has_headers(false).from_reader(f);
let mut v = Vec::new();
for result in csv_reader.records() {
Expand Down
8 changes: 4 additions & 4 deletions src/main_leave.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ fn generate_autoplay_logs<const WRITE_LOGS: bool, const SUMMARIZE: bool, const B
let player_aliases = std::sync::Arc::new(
(1..=game_config.num_players())
.map(|x| format!("p{x}"))
.collect::<Box<_>>(),
.collect::<Box<[String]>>(),
);
let num_threads = num_cpus::get();
let num_processed_games = std::sync::Arc::new(std::sync::atomic::AtomicU64::new(0));
Expand Down Expand Up @@ -475,15 +475,15 @@ fn generate_autoplay_logs<const WRITE_LOGS: bool, const SUMMARIZE: bool, const B
player_aliases
.iter()
.map(|x| format!("{x}_score"))
.collect::<Box<_>>(),
.collect::<Box<[String]>>(),
player_aliases
.iter()
.map(|x| format!("{x}_bingos"))
.collect::<Box<_>>(),
.collect::<Box<[String]>>(),
player_aliases
.iter()
.map(|x| format!("{x}_turns"))
.collect::<Box<_>>(),
.collect::<Box<[String]>>(),
"first",
))?;
let csv_game_writer = csv_game.into_inner()?;
Expand Down

0 comments on commit 7e3a926

Please sign in to comment.