Skip to content

Commit

Permalink
Allow unsafe code
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed May 11, 2023
1 parent e82ce8d commit 096bcd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
clippy::from_over_into,
clippy::needless_borrow,
clippy::new_without_default,
clippy::useless_conversion
clippy::useless_conversion,
unsafe_code
)]
#![forbid(rust_2018_idioms, unsafe_code)]
#![forbid(rust_2018_idioms)]
#![allow(clippy::inherent_to_string, clippy::type_complexity)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
pub use iced_graphics as graphics;
Expand Down
1 change: 1 addition & 0 deletions winit/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ impl Window {
#[cfg(target_os = "windows")]
{
use winit::platform::windows::WindowBuilderExtWindows;
#[allow(unsafe_code)]
unsafe {
window_builder = window_builder
.with_parent_window(self.platform_specific.parent);
Expand Down

0 comments on commit 096bcd8

Please sign in to comment.