Skip to content

Instantly share code, notes, and snippets.

@dimitriye98
Created July 22, 2016 14:00
Show Gist options
  • Save dimitriye98/a52ebb0d9429fbf433337ed6b6df86c1 to your computer and use it in GitHub Desktop.
Save dimitriye98/a52ebb0d9429fbf433337ed6b6df86c1 to your computer and use it in GitHub Desktop.
src/engine.rs:34:3: 38:4 error: match arms have incompatible types [E0308]
src/engine.rs:34 match result {
^
src/engine.rs:34:3: 38:4 help: run `rustc --explain E0308` to see a detailed explanation
src/engine.rs:34:3: 38:4 note: expected type `_`
src/engine.rs:34:3: 38:4 note: found type `()`
src/engine.rs:35:44: 35:75 note: match arm with an incompatible type
src/engine.rs:35 UpdateResult::ChangeState(new_state) => { self.swap_state(new_state); },
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
match result {
UpdateResult::ChangeState(new_state) => { self.swap_state(new_state); },
UpdateResult::Quit => self.quit(),
UpdateResult::None => (),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment