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:
@@ -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::*};
|
||||
|
||||
|
||||
@@ -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`).
|
||||
|
||||
Reference in New Issue
Block a user