Enforce rust_2018_idioms in all libs
This commit is contained in:
parent
1690db0f0c
commit
d229b6fc23
5 changed files with 6 additions and 6 deletions
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
||||||
#![warn(clippy::all)]
|
#![warn(clippy::all, missing_docs, rust_2018_idioms)]
|
||||||
|
|
||||||
pub use {egui, epi};
|
pub use {egui, epi};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
#![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")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
use eframe::wasm_bindgen::{self, prelude::*};
|
use eframe::wasm_bindgen::{self, prelude::*};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
||||||
#![warn(clippy::all)]
|
#![warn(clippy::all, rust_2018_idioms)]
|
||||||
|
|
||||||
// When compiling natively:
|
// When compiling natively:
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
||||||
#![warn(clippy::all)]
|
#![warn(clippy::all, rust_2018_idioms)]
|
||||||
#![allow(clippy::single_match)]
|
#![allow(clippy::single_match)]
|
||||||
|
|
||||||
mod backend;
|
mod backend;
|
||||||
|
@ -42,7 +42,7 @@ impl GliumInputState {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn input_to_egui(
|
pub fn input_to_egui(
|
||||||
event: glutin::event::WindowEvent,
|
event: glutin::event::WindowEvent<'_>,
|
||||||
clipboard: Option<&mut ClipboardContext>,
|
clipboard: Option<&mut ClipboardContext>,
|
||||||
input_state: &mut GliumInputState,
|
input_state: &mut GliumInputState,
|
||||||
control_flow: &mut ControlFlow,
|
control_flow: &mut ControlFlow,
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
||||||
#![warn(clippy::all)]
|
#![warn(clippy::all, rust_2018_idioms)]
|
||||||
|
|
||||||
pub mod backend;
|
pub mod backend;
|
||||||
pub mod http;
|
pub mod http;
|
||||||
|
|
Loading…
Reference in a new issue