refactor(org): cleanup
This commit is contained in:
parent
05cfe17f6a
commit
74fd77dba2
6 changed files with 135 additions and 107 deletions
|
|
@ -121,10 +121,9 @@ pub trait HtmlHandler<E: From<Error>> {
|
|||
}
|
||||
fn snippet<W: Write>(&mut self, mut w: W, snippet: &Snippet<'_>) -> Result<(), E> {
|
||||
if snippet.name.eq_ignore_ascii_case("HTML") {
|
||||
Ok(write!(w, "{}", snippet.value)?)
|
||||
} else {
|
||||
Ok(())
|
||||
write!(w, "{}", snippet.value)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
fn target<W: Write>(&mut self, mut w: W, target: &Target<'_>) -> Result<(), E> {
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue