Skip to content

Commit

Permalink
Fixed web build
Browse files Browse the repository at this point in the history
  • Loading branch information
CUB3D committed Aug 13, 2020
1 parent d04e54c commit 455939b
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@ impl Model {
</ul>
</>
},
SolValue::TypedObject(name, _) => html! {
<>
<p>{"name"}</p>
<p>{name}</p>
</>
},
SolValue::VectorObject(_, name, _) => html! {
<>
<p>{"name"}</p>
Expand Down Expand Up @@ -161,6 +155,7 @@ impl Model {
SolValue::XML(content, string) => html! {
<p>{ content }</p>
},
SolValue::AMF3(e) => self.value_details(e.clone()),
_ => html! {},
}
}
Expand Down Expand Up @@ -208,16 +203,12 @@ impl Model {

fn view_sol_value(&self, data: Element) -> Html {
match data.borrow_mut().deref() {
SolValue::AMF3(e) => self.view_sol_value(e.clone()),
SolValue::Object(elements, _class_def) => html! {
<ul>
{ for elements.iter().map(|e| self.view_sol_element(Box::from(e.clone())))}
</ul>
},
SolValue::TypedObject(_name, elements) => html! {
<ul>
{ for elements.iter().map(|e| self.view_sol_element(Box::from(e.clone())))}
</ul>
},
SolValue::StrictArray(x) => html! {
<ul>
{ for x.iter().enumerate().map(|(i, v)| self.view_array_element(i, v))}
Expand Down

0 comments on commit 455939b

Please sign in to comment.