Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Sep 28, 2023
1 parent 1121e8d commit eaaea6f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/torii/client/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ impl Client {
console_error_panic_hook::set_once();
let _entities = entities
.into_iter()
.map(|entity| {
serde_wasm_bindgen::from_value::<dojo_types::component::EntityModel>(entity)
})
.map(serde_wasm_bindgen::from_value::<dojo_types::model::EntityModel>)
.collect::<Result<Vec<_>, _>>()?;
unimplemented!("add_entity_to_sync");
}
Expand All @@ -73,7 +71,7 @@ pub async fn spawn_client(

let entities = initial_entities_to_sync
.into_iter()
.map(serde_wasm_bindgen::from_value::<dojo_types::component::EntityModel>)
.map(serde_wasm_bindgen::from_value::<dojo_types::model::EntityModel>)
.collect::<Result<Vec<_>, _>>()?;

let world_address = FieldElement::from_str(world_address).map_err(|err| {
Expand Down

0 comments on commit eaaea6f

Please sign in to comment.