Only forbid warnings in release builds

This commit is contained in:
Emil Ernerfeldt 2020-12-18 22:19:56 +01:00
parent 0e2c4077cb
commit 71449fe61c
7 changed files with 7 additions and 7 deletions

View file

@ -1,5 +1,5 @@
#![forbid(unsafe_code)] #![forbid(unsafe_code)]
#![deny(warnings)] #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
#![warn(clippy::all)] #![warn(clippy::all)]
fn main() { fn main() {

View file

@ -1,5 +1,5 @@
#![forbid(unsafe_code)] #![forbid(unsafe_code)]
#![deny(warnings)] #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
#![warn(clippy::all)] #![warn(clippy::all)]
use wasm_bindgen::prelude::*; use wasm_bindgen::prelude::*;

View file

@ -34,8 +34,8 @@
//! } //! }
//! ``` //! ```
#![forbid(unsafe_code)]
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
#![forbid(unsafe_code)]
#![warn( #![warn(
clippy::all, clippy::all,
clippy::await_holding_lock, clippy::await_holding_lock,

View file

@ -1,5 +1,5 @@
#![forbid(unsafe_code)] #![forbid(unsafe_code)]
#![deny(warnings)] #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
#![warn(clippy::all)] #![warn(clippy::all)]
#![allow(clippy::single_match)] #![allow(clippy::single_match)]

View file

@ -1,5 +1,5 @@
#![forbid(unsafe_code)] #![forbid(unsafe_code)]
#![deny(warnings)] #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
#![warn(clippy::all)] #![warn(clippy::all)]
pub mod backend; pub mod backend;

View file

@ -1,6 +1,6 @@
//! Example of how to use Egui //! Example of how to use Egui
#![forbid(unsafe_code)] #![forbid(unsafe_code)]
#![deny(warnings)] #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
#![warn(clippy::all)] #![warn(clippy::all)]
mod example_app; mod example_app;

View file

@ -1,5 +1,5 @@
#![forbid(unsafe_code)] #![forbid(unsafe_code)]
#![deny(warnings)] #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
#![warn(clippy::all)] #![warn(clippy::all)]
mod example_app; mod example_app;