Fixed compiler warnings
This commit is contained in:
parent
34c8099720
commit
6d512470de
@ -1,4 +1,5 @@
|
||||
use std::{borrow::BorrowMut, collections::HashMap, fs::copy, vec};
|
||||
use std::collections::HashMap;
|
||||
|
||||
|
||||
use super::Solution;
|
||||
|
||||
@ -30,7 +31,7 @@ impl Solution for Day04 {
|
||||
input: &mut Vec<String>,
|
||||
) -> Result<Box<dyn std::fmt::Display>, Box<dyn std::error::Error>> {
|
||||
// Remove Card XXX: at start and append card index
|
||||
let mut cards: Vec<(usize, &str)> = input
|
||||
let cards: Vec<(usize, &str)> = input
|
||||
.iter()
|
||||
.map(|c| c.split(":").into_iter().last().unwrap())
|
||||
.into_iter()
|
||||
|
Loading…
Reference in New Issue
Block a user