Allow unsafe code
This commit is contained in:
parent
e82ce8d93c
commit
096bcd8988
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue