Skip to content

Commit

Permalink
Fix unused_mut warning when not compiling for wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
Liamolucko committed Feb 27, 2022
1 parent 186fe61 commit 67f7ea6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use winit::{
pub fn main() {
let event_loop = EventLoop::new();

#[cfg_attr(not(target_arch = "wasm32"), allow(unused_mut))]
let mut builder = WindowBuilder::new()
.with_title("A fantastic window!")
// We don't know if `css-size` is enabled or not, so just use a fixed size.
Expand Down

0 comments on commit 67f7ea6

Please sign in to comment.