aboutsummaryrefslogtreecommitdiffstats
path: root/src/day6.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/day6.rs')
-rw-r--r--src/day6.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/day6.rs b/src/day6.rs
index 4cf93e1..a8a1202 100644
--- a/src/day6.rs
+++ b/src/day6.rs
@@ -55,7 +55,7 @@ use std::i64;
pub fn part1() {
let input = crate::common::read_stdin_to_string();
- let coords = input_to_coords(input);
+ let coords = input_to_coords(&input);
let bounds = get_bounds(&coords);
let areas = calculate_areas(&coords, bounds);
@@ -102,7 +102,7 @@ pub fn part1() {
pub fn part2() {
let input = crate::common::read_stdin_to_string();
- let coords = input_to_coords(input);
+ let coords = input_to_coords(&input);
let bounds = get_bounds(&coords);
let region_size = calculate_region_size(&coords, bounds);
@@ -112,7 +112,7 @@ pub fn part2() {
);
}
-fn input_to_coords(input: String) -> Vec<(i64, i64)> {
+fn input_to_coords(input: &str) -> Vec<(i64, i64)> {
input
.lines()
.map(|line| {