fix: use clippy fix
This commit is contained in:
1 parent
66b832045a
commit
84d1867654
9 files changed
+36
-44
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -120,7 +120,7 @@ fn render_element<'a>(
|
||||
}
|
||||
write!(f, "\",")?;
|
||||
}
|
||||
write!(f, "\n")?;
|
||||
writeln!(f)?;
|
||||
|
||||
// write the attributes
|
||||
if let Some(id) = &el.id {
|
||||
|
||||
Reference in new issue
Block a user