Reduce warnings

This commit is contained in:
Jeremy Soller
2018-11-10 07:52:45 -07:00
parent 131dcac554
commit ebffc977b2
20 changed files with 28 additions and 54 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ pub fn get_dns_server() -> String {
Ok(file) => file,
Err(_) => return String::new(), // TODO: better error handling
};
let mut file = BufReader::new(file);
let file = BufReader::new(file);
for line in file.split(b'\n') {
let mut line = match line {