#![feature(prelude_import)] #[prelude_import] use std::prelude::v1::*; #[macro_use] extern crate std; use yew::{html, Component, ComponentLink, Html, ShouldRender}; pub struct Model {  link: ComponentLink<Self>,  clicked: bool, } pub enum Msg {  Click, } impl Component for Model {  type Message = Msg;  type Properties = ();  fn create(_: Self::Properties, link: ComponentLink<Self>) -> Self {  Model {  link,  clicked: false,  }  }  fn change(&mut self, _: Self::Properties) -> bool {  false  }  fn update(&mut self, msg: Self::Message) -> ShouldRender {  match msg {  Msg::Click => {  self.clicked = true;  }  }  true  }  fn view(&self) -> Html {  {  #[allow(clippy::useless_conversion, unused_braces)]  ::yew::virtual_dom::VNode::from({  #[allow(unused_braces)]  let mut __yew_vtag =  ::yew::virtual_dom::VTag::new(::std::borrow::Cow::<'static, str>::Borrowed(  "div",  ));  if false {  __yew_vtag.attributes =  ::yew::virtual_dom::Attributes::Vec(::alloc::vec::Vec::new());  };  if false {  __yew_vtag.add_listeners(::alloc::vec::Vec::new());  };  if true {  # [ allow ( clippy :: redundant_clone , unused_braces ) ] __yew_vtag . add_children ( < [ _ ] > :: into_vec ( box [ :: std :: convert :: Into :: into ( { # [ allow ( unused_braces ) ] let mut __yew_vtag = :: yew :: virtual_dom :: VTag :: new ( :: std :: borrow :: Cow :: < 'static , str > :: Borrowed ( "button" ) ) ; if false { __yew_vtag . attributes = :: yew :: virtual_dom :: Attributes :: Vec ( :: alloc :: vec :: Vec :: new ( ) ) ; } ; if true { __yew_vtag . add_listeners ( < [ _ ] > :: into_vec ( box [ :: std :: rc :: Rc :: new ( :: yew :: html :: onclick :: Wrapper :: new ( < :: yew :: virtual_dom :: VTag as :: yew :: virtual_dom :: Transformer < _ , _ > > :: transform ( self . link . callback ( | _ | Msg :: Click ) ) ) ) ] ) ) ; } ; if true { # [ allow ( clippy :: redundant_clone , unused_braces ) ] __yew_vtag . add_children ( < [ _ ] > :: into_vec ( box [ :: std :: convert :: Into :: into ( :: yew :: virtual_dom :: VText :: new ( :: std :: borrow :: Cow :: < 'static , str > :: Borrowed ( "Click ( wasm-bindgen )" ) ) ) ] ) ) ; } ; # [ allow ( unused_braces ) ] :: yew :: virtual_dom :: VNode :: from ( __yew_vtag ) } ) , :: std :: convert :: Into :: into ( { # [ allow ( unused_braces ) ] let mut __yew_vtag = :: yew :: virtual_dom :: VTag :: new ( :: std :: borrow :: Cow :: < 'static , str > :: Borrowed ( "p" ) ) ; if false { __yew_vtag . attributes = :: yew :: virtual_dom :: Attributes :: Vec ( :: alloc :: vec :: Vec :: new ( ) ) ; } ; if false { __yew_vtag . add_listeners ( :: alloc :: vec :: Vec :: new ( ) ) ; } ; if true { # [ allow ( clippy :: redundant_clone , unused_braces ) ] __yew_vtag . add_children ( { let mut __yew_v = :: std :: vec :: Vec :: new ( ) ; __yew_v . extend ( :: std :: convert :: Into :: < :: yew :: utils :: NodeSeq < _ , _ > > :: into ( { let res = :: alloc :: fmt :: format ( :: core :: fmt :: Arguments :: new_v1 ( & [ "Has been clicked: " ] , & match ( & self . clicked , ) { ( arg0 , ) => [ :: core :: fmt :: ArgumentV1 :: new ( arg0 , :: core :: fmt :: Display :: fmt ) ] , } ) ) ; res } ) ) ; __yew_v } ) ; } ; # [ allow ( unused_braces ) ] :: yew :: virtual_dom :: VNode :: from ( __yew_vtag ) } ) ] ) ) ;  };  #[allow(unused_braces)]  ::yew::virtual_dom::VNode::from(__yew_vtag)  })  }  } }