From 25330c5512c46b840739ca76ecc49de5a1159891 Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Tue, 4 Dec 2018 11:07:06 -0500 Subject: [PATCH] cargo fmt --- 2018/day2/src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/2018/day2/src/main.rs b/2018/day2/src/main.rs index d2a3695..99651c8 100644 --- a/2018/day2/src/main.rs +++ b/2018/day2/src/main.rs @@ -1,9 +1,9 @@ extern crate edit_distance; +use edit_distance::edit_distance; use std::collections::HashMap; use std::fs::File; use std::io::{BufRead, BufReader}; -use edit_distance::edit_distance; fn get_char_counts(input: &String) -> (bool, bool) { let mut has_two = false; @@ -41,7 +41,9 @@ fn calc_checksum(lines: &Vec) { } fn find_single_char_difference(lines: &mut Vec) { - let line = lines.pop().expect("ran out of lines to find the single char difference!"); + let line = lines + .pop() + .expect("ran out of lines to find the single char difference!"); let mut found = false; for other in lines.iter() { if edit_distance(&line, other) == 1 {