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_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::*;