From e5957b78313927f9503d37278324c9d6650295e3 Mon Sep 17 00:00:00 2001 From: Pauan Date: Sun, 16 Jun 2019 00:12:31 +0200 Subject: [PATCH] Fixing build errors --- src/dom.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dom.rs b/src/dom.rs index 12f3aff..21a9918 100644 --- a/src/dom.rs +++ b/src/dom.rs @@ -527,7 +527,7 @@ impl DomBuilder where A: AsRef { } #[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 DomBuilder where A: AsRef { } #[inline] - pub fn text_signal(self, value: C) -> Self + pub fn text_signal(mut self, value: C) -> Self where B: AsStr, C: Signal + 'static {