From 036a567bae8346eb38f9237f59645dbcc4f1cd8c Mon Sep 17 00:00:00 2001 From: jelemux Date: Tue, 9 Feb 2021 23:18:45 +0100 Subject: switch to cargo-make; format files with rustfmt --- src/view/telephone.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/view/telephone.rs') diff --git a/src/view/telephone.rs b/src/view/telephone.rs index dc93632..68389ba 100644 --- a/src/view/telephone.rs +++ b/src/view/telephone.rs @@ -1,28 +1,28 @@ +use super::VCardPropertyInputComponent; use crate::view::InputProps; -use yew::prelude::*; -use yewtil::NeqAssign; -use crate::viewmodel::Error; use crate::viewmodel::telephone::*; +use crate::viewmodel::Error; use crate::viewmodel::VCardPropertyInputObject; -use super::VCardPropertyInputComponent; +use yew::prelude::*; +use yewtil::NeqAssign; -type Props = InputProps; +type Props = InputProps; /// View Component for a `telephone` field -/// +/// /// # Examples -/// +/// /// ```compile_fail /// let html = html!{ -/// | +/// |n: Irc| /// Msg::GeneratedTelephone(some_telephone) /// ) /// /> /// }; /// ``` -#[derive(Clone,PartialEq)] +#[derive(Clone, PartialEq)] pub struct TelephoneView { props: Props, value: Telephone, @@ -85,13 +85,13 @@ impl Component for TelephoneView { }; true } - fn change(&mut self, props: ::Properties) -> bool { + fn change(&mut self, props: ::Properties) -> bool { self.props.neq_assign(props) } fn view(&self) -> yew::virtual_dom::VNode { let link = self.props.weak_link.borrow().clone().unwrap(); - html!{ + html! {
{ self.render_error() } @@ -102,4 +102,4 @@ impl Component for TelephoneView {
} } -} \ No newline at end of file +} -- cgit v1.2.3