seed-rs / seed-quickstart

Bare essentials to start a Seed app.
https://seed-rs.org/
101 stars 28 forks source link

Build error #1

Closed loothood closed 5 years ago

loothood commented 5 years ago

Hi! I try to build the example

cargo build --target wasm32-unknown-unknown

and I got the error:

error[E0107]: wrong number of type arguments: expected 2, found 1
  --> src/lib.rs:29:38
   |
29 | fn update(msg: Msg, model: Model) -> Update<Model> {
   |                                      ^^^^^^^^^^^^^ expected 2 type arguments

error: aborting due to previous error

For more information about this error, try `rustc --explain E0107`.
error: Could not compile `appname`.
David-OConnor commented 5 years ago

There was a breaking change in the latest release. Update takes a message and a model: Update<Msg, Model>. I neglected to update the guide, readme, and quickstart. Fixed.