Merge pull request #165 from hecrj/improvement/forbid-unsafe-code

Forbid unsafe code and Rust 2018 idioms
This commit is contained in:
Héctor Ramón 2020-01-21 00:52:36 +01:00 committed by GitHub
commit f9165a5e01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 14 deletions

View File

@ -12,8 +12,8 @@
#![deny(missing_docs)] #![deny(missing_docs)]
#![deny(missing_debug_implementations)] #![deny(missing_debug_implementations)]
#![deny(unused_results)] #![deny(unused_results)]
#![deny(unsafe_code)] #![forbid(unsafe_code)]
#![deny(rust_2018_idioms)] #![forbid(rust_2018_idioms)]
mod align; mod align;
mod background; mod background;

View File

@ -2,8 +2,8 @@
#![deny(missing_docs)] #![deny(missing_docs)]
#![deny(missing_debug_implementations)] #![deny(missing_debug_implementations)]
#![deny(unused_results)] #![deny(unused_results)]
#![deny(unsafe_code)] #![forbid(unsafe_code)]
#![deny(rust_2018_idioms)] #![forbid(rust_2018_idioms)]
pub use futures; pub use futures;
mod command; mod command;

View File

@ -37,8 +37,8 @@
#![deny(missing_docs)] #![deny(missing_docs)]
#![deny(missing_debug_implementations)] #![deny(missing_debug_implementations)]
#![deny(unused_results)] #![deny(unused_results)]
#![deny(unsafe_code)] #![forbid(unsafe_code)]
#![deny(rust_2018_idioms)] #![forbid(rust_2018_idioms)]
pub mod input; pub mod input;
pub mod layout; pub mod layout;
pub mod renderer; pub mod renderer;

View File

@ -177,8 +177,8 @@
#![deny(missing_docs)] #![deny(missing_docs)]
#![deny(missing_debug_implementations)] #![deny(missing_debug_implementations)]
#![deny(unused_results)] #![deny(unused_results)]
#![deny(unsafe_code)] #![forbid(unsafe_code)]
#![deny(rust_2018_idioms)] #![forbid(rust_2018_idioms)]
mod application; mod application;
mod element; mod element;
mod sandbox; mod sandbox;

View File

@ -54,8 +54,8 @@
#![deny(missing_docs)] #![deny(missing_docs)]
#![deny(missing_debug_implementations)] #![deny(missing_debug_implementations)]
#![deny(unused_results)] #![deny(unused_results)]
#![deny(unsafe_code)] #![forbid(unsafe_code)]
#![deny(rust_2018_idioms)] #![forbid(rust_2018_idioms)]
use dodrio::bumpalo; use dodrio::bumpalo;
use std::{cell::RefCell, rc::Rc}; use std::{cell::RefCell, rc::Rc};

View File

@ -22,8 +22,8 @@
#![deny(missing_docs)] #![deny(missing_docs)]
#![deny(missing_debug_implementations)] #![deny(missing_debug_implementations)]
#![deny(unused_results)] #![deny(unused_results)]
#![deny(unsafe_code)] #![forbid(unsafe_code)]
#![deny(rust_2018_idioms)] #![forbid(rust_2018_idioms)]
pub mod defaults; pub mod defaults;
pub mod triangle; pub mod triangle;
pub mod widget; pub mod widget;

View File

@ -18,8 +18,8 @@
#![deny(missing_docs)] #![deny(missing_docs)]
#![deny(missing_debug_implementations)] #![deny(missing_debug_implementations)]
#![deny(unused_results)] #![deny(unused_results)]
#![deny(unsafe_code)] #![forbid(unsafe_code)]
#![deny(rust_2018_idioms)] #![forbid(rust_2018_idioms)]
#[doc(no_inline)] #[doc(no_inline)]
pub use iced_native::*; pub use iced_native::*;