diff --git a/src/theme.rs b/src/theme.rs index b71819a..bbe4041 100644 --- a/src/theme.rs +++ b/src/theme.rs @@ -630,7 +630,6 @@ mod tests { assert_eq!(theme.description.unwrap(), "AUTOMATICALLY GENERATED THEME"); let wc = theme.window_colors.unwrap(); - let bc = theme.bar_colors.unwrap(); let group = wc.focused.unwrap(); assert_eq!(group.border, Some("#859900".to_string())); diff --git a/src/writer.rs b/src/writer.rs index 8668b4d..12de786 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -485,6 +485,7 @@ pub fn write_config_from_reader(input: BufReader, output: Option<&String>, #[cfg(test)] mod tests { use super::*; + use theme::from_yaml; extern crate tempfile; extern crate yaml_rust; @@ -496,7 +497,7 @@ mod tests { fn get_file_contents(path: &String) -> String { let mut file = File::open(path).expect("could not open file"); let mut contents = String::new(); - file.read_to_string(&mut contents); + file.read_to_string(&mut contents).unwrap(); contents }