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());
|
let mut stdout = BufWriter::new(stdout());
|
||||||
if let Some(inputs) = matches.values_of("INPUT") {
|
if let Some(inputs) = matches.values_of("INPUT") {
|
||||||
for name in inputs {
|
for name in inputs {
|
||||||
match StyleSheet::from_path(name) {
|
StyleSheet::from_path(name, &mut stdout).unwrap_or_else(|e| {
|
||||||
Ok(a) => a,
|
eprintln!("{}", e);
|
||||||
Err(b) => {
|
|
||||||
eprintln!("{}", b);
|
|
||||||
std::process::exit(1)
|
std::process::exit(1)
|
||||||
}
|
});
|
||||||
}
|
|
||||||
.print_as_css(&mut stdout)
|
|
||||||
.unwrap();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user