~janbaudisch/heron

03b95cf25bd0e7baabf52f5e6ed938ae2c626fc4 — Jan Baudisch 4 years ago 4657b24
web: increase recursion limit
1 files changed, 5 insertions(+), 3 deletions(-)

M heron_web/src/main.rs
M heron_web/src/main.rs => heron_web/src/main.rs +5 -3
@@ 1,3 1,5 @@
#![recursion_limit="512"]

use heron::heron;
use yew::{html, Component, ComponentLink, Html, Renderable, ShouldRender};



@@ 53,11 55,11 @@ impl Renderable<Model> for Model {
    fn view(&self) -> Html<Self> {
        html! {
            <div>
                <input value=&self.square, oninput=|event| Message::Input(Input::Square, event.value), placeholder="square",></input>
                <input value=&self.square oninput=|event| Message::Input(Input::Square, event.value) placeholder="square"></input>
                <br></br>
                <input value=&self.precision, oninput=|event| Message::Input(Input::Precision, event.value), placeholder="precision",></input>
                <input value=&self.precision oninput=|event| Message::Input(Input::Precision, event.value) placeholder="precision"></input>
                <br></br>
                <button onclick=|_| Message::Calculcate,>{ "calculcate" }</button>
                <button onclick=|_| Message::Calculcate>{ "calculcate" }</button>
                <br></br>
                <p>{ "square root: " }<b>{ &self.root }</b></p>
            </div>