Clean up the cast calls

This commit is contained in:
Anthony Ramine 2015-10-07 14:55:02 +02:00
parent 13ea3ac413
commit 68014af78e
66 changed files with 412 additions and 718 deletions

View file

@ -48,7 +48,7 @@ impl Sink {
NodeOrText::AppendNode(n) => n.root(),
NodeOrText::AppendText(t) => {
let text = Text::new(t.into(), &self.document);
Root::upcast::<Node>(text)
Root::upcast(text)
}
}
}