Only forbid warnings in release builds
This commit is contained in:
parent
0e2c4077cb
commit
71449fe61c
7 changed files with 7 additions and 7 deletions
|
@ -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() {
|
||||
|
|
|
@ -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::*;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)]
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue