From 44e5c3826854266287ec7dadc390a15be70c753e Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Sat, 15 Dec 2018 18:11:16 +0100 Subject: [PATCH] Attempt to fix Ubuntu incompatibility. --- 2018/src/common.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();