Remove StyleSheet::print_as_css from main
This commit is contained in:
parent
9a72d9714a
commit
a3a218f950
11
src/main.rs
11
src/main.rs
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user