diff options
author | 2018-12-10 13:32:53 +1000 | |
---|---|---|
committer | 2018-12-10 13:32:53 +1000 | |
commit | 03c69dbe7d0fadf226bea5cf0d7eb28a93156716 (patch) | |
tree | 4eb07cc9a05b4791b724badbad01699293e31ca0 /src/day5.rs | |
parent | 9d0939dfce47a6135d746da7815dbf10fcf740a0 (diff) |
upgraded to rust 2018 edition
Diffstat (limited to 'src/day5.rs')
-rw-r--r-- | src/day5.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/day5.rs b/src/day5.rs index 00a8779..2b836d8 100644 --- a/src/day5.rs +++ b/src/day5.rs @@ -22,7 +22,7 @@ /// /// How many units remain after fully reacting the polymer you scanned? pub fn part1() { - let input = ::common::read_stdin_to_string(); + let input = crate::common::read_stdin_to_string(); let mut polymer: Vec<_> = input.trim().chars().collect(); @@ -51,7 +51,7 @@ pub fn part1() { /// /// What is the length of the shortest polymer you can produce by removing all units of exactly one type and fully reacting the result? pub fn part2() { - let input = ::common::read_stdin_to_string(); + let input = crate::common::read_stdin_to_string(); let polymer: Vec<_> = input.trim().chars().collect(); let mut shortest_polymer = polymer.len(); |