fix: use clippy fix

This commit is contained in:
mrxiaozhuox committed 2022-01-25 12:42:27 +08:00
1 parent 66b832045a
commit 84d1867654
9 files changed
+36 -44

No files matched your search

+2 -2
View File
@@ -48,7 +48,7 @@ impl Translate {
exit(0);
})
});
if let None = temp {
if temp.is_none() {
if let Some(s) = source {
contents = s;
} else {
@@ -112,7 +112,7 @@ fn render_child(f: &mut impl Write, child: &Node, il: u32) -> std::fmt::Result {
}
write!(f, "\",")?;
}
write!(f, "\n")?;
writeln!(f)?;
// write the attributes
if let Some(id) = &el.id {
+1 -1
View File
@@ -120,7 +120,7 @@ fn render_element<'a>(
}
write!(f, "\",")?;
}
write!(f, "\n")?;
writeln!(f)?;
// write the attributes
if let Some(id) = &el.id {