Remove StyleSheet::print_as_css from main

This commit is contained in:
ConnorSkees 2020-04-18 18:57:01 -04:00
parent 9a72d9714a
commit a3a218f950

View File

@ -64,15 +64,10 @@ fn main() {
let mut stdout = BufWriter::new(stdout());
if let Some(inputs) = matches.values_of("INPUT") {
for name in inputs {
match StyleSheet::from_path(name) {
Ok(a) => a,
Err(b) => {
eprintln!("{}", b);
StyleSheet::from_path(name, &mut stdout).unwrap_or_else(|e| {
eprintln!("{}", e);
std::process::exit(1)
}
}
.print_as_css(&mut stdout)
.unwrap();
});
}
}
}