Skip to content

Commit a74d675

Browse files
committed
add oxvg
1 parent 4993f22 commit a74d675

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ansi2/src/main.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fn main() {
136136
fn minify_svg(svg: &str) -> Result<String, String> {
137137
use oxvg_ast::{
138138
implementations::{roxmltree::parse, shared::Element},
139-
serialize::{self, Node as _, Options},
139+
serialize::{Node as _, Options},
140140
visitor::Info,
141141
};
142142
use oxvg_optimiser::Jobs;
@@ -147,9 +147,6 @@ fn minify_svg(svg: &str) -> Result<String, String> {
147147
.run(&dom, &Info::<Element>::new(&arena))
148148
.map_err(|err| err.to_string())?;
149149

150-
dom.serialize_with_options(Options {
151-
indent: serialize::Indent::None,
152-
..Default::default()
153-
})
150+
dom.serialize_with_options(Options::default())
154151
.map_err(|err| err.to_string())
155152
}

0 commit comments

Comments
 (0)