1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

Move lints list to .carg/config.toml (#1394)

That way they apply to all crates equally.

See https://github.com/EmbarkStudios/rust-ecosystem/issues/22 for why.
This commit is contained in:
Emil Ernerfeldt
2022-03-21 16:54:29 +01:00
committed by GitHub
parent ccbddcfe95
commit fda8189cba
17 changed files with 96 additions and 664 deletions

View File

@@ -1,8 +1,3 @@
// Forbid warnings in release builds:
#![cfg_attr(not(debug_assertions), deny(warnings))]
#![forbid(unsafe_code)]
#![warn(clippy::all, rust_2018_idioms)]
#[cfg(target_arch = "wasm32")]
use eframe::wasm_bindgen::{self, prelude::*};

View File

@@ -1,10 +1,5 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
// Forbid warnings in release builds:
#![cfg_attr(not(debug_assertions), deny(warnings))]
#![forbid(unsafe_code)]
#![warn(clippy::all, rust_2018_idioms)]
// When compiling natively:
fn main() {
// Log to stdout (if you run with `RUST_LOG=debug`).