Skip to content

Commit

Permalink
Fix: Silence compiler warning about dead_code, when compiling on Wind…
Browse files Browse the repository at this point in the history
…ows with Rust 1.57
  • Loading branch information
Aligorith committed Jan 3, 2022
1 parent 1cae756 commit 46d7a0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subcrates/gelatin/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ pub struct WindowDescriptor {
/// Only relevant on Wayland.
/// See: https://docs.rs/winit/0.24.0/winit/platform/unix/trait.WindowBuilderExtUnix.html#tymethod.with_app_id
#[builder(default)]
#[allow(dead_code)] // XXX: To silence warnings on windows, as tested with Rust 1.57+
app_id: Option<String>,
}

Expand Down

0 comments on commit 46d7a0b

Please sign in to comment.