diff --git a/2018/src/common.rs b/2018/src/common.rs index 29a4a38..e771c36 100644 --- a/2018/src/common.rs +++ b/2018/src/common.rs @@ -5,6 +5,7 @@ use std::io::Read; use std::str::FromStr; use std::ops::Add; use std::ops::Sub; +use std::fmt::Debug; /// Apply Erathostenes's sieve to the supplied array /// @@ -59,7 +60,7 @@ pub fn trim_back(input: &mut Vec) { /// This function loads the input into a string and then attempts to parse it. pub fn read_single_input(input: &mut Read) -> T where T: FromStr, - ::Err: std::fmt::Debug + ::Err: Debug { let mut buf = String::new(); input.read_to_string(&mut buf).unwrap();