aboutsummaryrefslogtreecommitdiffstats
path: root/src/day1.rs
diff options
context:
space:
mode:
authorGravatar alecdwm 2018-12-10 13:32:53 +1000
committerGravatar alecdwm 2018-12-10 13:32:53 +1000
commit03c69dbe7d0fadf226bea5cf0d7eb28a93156716 (patch)
tree4eb07cc9a05b4791b724badbad01699293e31ca0 /src/day1.rs
parent9d0939dfce47a6135d746da7815dbf10fcf740a0 (diff)
upgraded to rust 2018 edition
Diffstat (limited to 'src/day1.rs')
-rw-r--r--src/day1.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/day1.rs b/src/day1.rs
index 4b2e014..2383df8 100644
--- a/src/day1.rs
+++ b/src/day1.rs
@@ -39,7 +39,7 @@ enum FrequencyOperation {
///
/// Starting with a frequency of zero, what is the resulting frequency after all of the changes in frequency have been applied?
pub fn part1() {
- let input = ::common::read_stdin_to_string();
+ let input = crate::common::read_stdin_to_string();
let changes = build_changes(input);
let mut frequency: i64 = 0;
@@ -76,7 +76,7 @@ pub fn part1() {
///
/// What is the first frequency your device reaches twice?
pub fn part2() {
- let input = ::common::read_stdin_to_string();
+ let input = crate::common::read_stdin_to_string();
let changes = build_changes(input);
let mut frequency: i64 = 0;