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)]
#![deny(warnings)]
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
#![warn(clippy::all)]
fn main() {

View file

@ -1,5 +1,5 @@
#![forbid(unsafe_code)]
#![deny(warnings)]
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
#![warn(clippy::all)]
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
#![forbid(unsafe_code)]
#![warn(
clippy::all,
clippy::await_holding_lock,

View file

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

View file

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

View file

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

View file

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