1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

#![allow(clippy::float_cmp)] everywhere

it has always been an annoyance, never a help
This commit is contained in:
Emil Ernerfeldt
2021-05-09 14:00:53 +02:00
parent 6ad6f56cb1
commit fb5176c133
14 changed files with 7 additions and 24 deletions

View File

@@ -55,6 +55,7 @@
nonstandard_style,
rust_2018_idioms
)]
#![allow(clippy::float_cmp)]
#![allow(clippy::manual_range_contains)]
mod apps;

View File

@@ -335,8 +335,6 @@ impl BackendPanel {
ui: &mut egui::Ui,
info: &epi::IntegrationInfo,
) -> Option<f32> {
#![allow(clippy::float_cmp)]
self.pixels_per_point = self
.pixels_per_point
.or(info.native_pixels_per_point)