Closed alexkehayias closed 5 years ago
@alexkehayias thanks for fixing this!
So the issue with the Rc
is due to a silly mistake right here:
Mind just replacing that Rc
with std::rc::Rc
and then we can ditch needing to use Rc
in the README example?
Some additional context.
We store closures as Rc<dyn AsRef<JsValue>>
So the html!
macro uses Rc
when it sees a closure, in the README's case it was onclick
.
Thanks again for spotting this!
@chinedufn done, I ran the tests via ./tests.sh
and the output look 👍
Looking CLEAN - thanks again!
About
Fixes warning that import of
Cell
is unused and compilation failed due to use of undeclared type or moduleRc
.Using
rustc 1.34.0-nightly (146aa60f3 2019-02-18)
and the dependencies listed in the readme.