From 8cc405aa103a6e721d162f332ed1911a28eb02c3 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sun, 9 Dec 2018 12:39:34 +0100 Subject: cargo fix --edition-idioms --- 2018/src/day9.rs | 2 +- 2018/src/main.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to '2018') diff --git a/2018/src/day9.rs b/2018/src/day9.rs index 2432007..114f1c7 100644 --- a/2018/src/day9.rs +++ b/2018/src/day9.rs @@ -110,7 +110,7 @@ impl Chain { } impl fmt::Display for Chain { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { if self.left.len() == 0 { if self.right.len() == 0 { return Ok(()); } write!(f, "({})", self.right[0])?; diff --git a/2018/src/main.rs b/2018/src/main.rs index 1e01f55..49dbdf6 100644 --- a/2018/src/main.rs +++ b/2018/src/main.rs @@ -1,6 +1,4 @@ #[macro_use] extern crate lazy_static; -extern crate regex; -extern crate argparse; use std::io; use std::io::{BufRead, BufReader, Error, ErrorKind, Read}; -- cgit v1.2.3-70-g09d2