Fixing build errors

This commit is contained in:
Pauan 2019-06-16 00:12:31 +02:00
parent d6917cda84
commit e5957b7831
1 changed files with 2 additions and 2 deletions

View File

@ -527,7 +527,7 @@ impl<A> DomBuilder<A> where A: AsRef<Node> {
}
#[inline]
pub fn text(self, value: &str) -> Self {
pub fn text(mut self, value: &str) -> Self {
self.check_children();
self.element.as_ref().set_text_content(Some(value));
self
@ -546,7 +546,7 @@ impl<A> DomBuilder<A> where A: AsRef<Node> {
}
#[inline]
pub fn text_signal<B, C>(self, value: C) -> Self
pub fn text_signal<B, C>(mut self, value: C) -> Self
where B: AsStr,
C: Signal<Item = B> + 'static {