From 03c69dbe7d0fadf226bea5cf0d7eb28a93156716 Mon Sep 17 00:00:00 2001 From: alecdwm Date: Mon, 10 Dec 2018 13:32:53 +1000 Subject: upgraded to rust 2018 edition --- src/day3.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/day3.rs') diff --git a/src/day3.rs b/src/day3.rs index eb2ec85..a41506a 100644 --- a/src/day3.rs +++ b/src/day3.rs @@ -46,7 +46,7 @@ use std::str::FromStr; /// /// If the Elves all proceed with their own plans, none of them will have enough fabric. How many square inches of fabric are within two or more claims? pub fn part1() { - let input = ::common::read_stdin_to_string(); + let input = crate::common::read_stdin_to_string(); let mut fabric: BTreeMap<(i64, i64), u8> = BTreeMap::new(); @@ -74,7 +74,7 @@ pub fn part1() { /// /// What is the ID of the only claim that doesn't overlap? pub fn part2() { - let input = ::common::read_stdin_to_string(); + let input = crate::common::read_stdin_to_string(); let mut fabric: BTreeMap<(i64, i64), u8> = BTreeMap::new(); let mut claims: Vec = Vec::new(); -- cgit v1.2.3