Forbid unsafe code and Rust 2018 idioms

This commit is contained in:
Héctor Ramón Jiménez 2020-01-20 10:52:06 +01:00
parent 91d9d65a03
commit a30553ddbb
7 changed files with 14 additions and 14 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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