Skip to content

Commit

Permalink
main_menu.rs: Allow unused Message::Exit on WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
ozkriff committed Jun 9, 2023
1 parent 5cb1e7c commit c3c4eb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/screen/main_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ use crate::{

#[derive(Copy, Clone, Debug)]
enum Message {
#[cfg_attr(target_arch = "wasm32", allow(unused))] // can't quit WASM so it's not used there
Exit,

StartInstant,

StartCampaign,
}

Expand Down

0 comments on commit c3c4eb9

Please sign in to comment.