summaryrefslogtreecommitdiff
path: root/2018/src
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-12-09 12:39:34 +0100
committertomsmeding <tom.smeding@gmail.com>2018-12-09 12:42:38 +0100
commit8cc405aa103a6e721d162f332ed1911a28eb02c3 (patch)
tree66362d9320a1bd22414aa870143717f53a452afb /2018/src
parent50273ff5b02b11ac59ce7081695d927566ff4374 (diff)
cargo fix --edition-idioms
Diffstat (limited to '2018/src')
-rw-r--r--2018/src/day9.rs2
-rw-r--r--2018/src/main.rs2
2 files changed, 1 insertions, 3 deletions
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<T: Copy> Chain<T> {
}
impl<T: Copy + fmt::Display> fmt::Display for Chain<T> {
- 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};