mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Enforce rust_2018_idioms in all libs
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#![forbid(unsafe_code)]
|
||||
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
||||
#![warn(clippy::all)]
|
||||
#![warn(clippy::all, rust_2018_idioms)]
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
use eframe::wasm_bindgen::{self, prelude::*};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#![forbid(unsafe_code)]
|
||||
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
||||
#![warn(clippy::all)]
|
||||
#![warn(clippy::all, rust_2018_idioms)]
|
||||
|
||||
// When compiling natively:
|
||||
fn main() {
|
||||
|
||||
Reference in New Issue
Block a user