Created
July 22, 2016 14:00
-
-
Save dimitriye98/a52ebb0d9429fbf433337ed6b6df86c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); }, | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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