From a87f1b73c43655ce25770ad45740c73df61c11c6 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 25 Apr 2024 15:42:51 +0200 Subject: [PATCH] Fixes --- Cargo.toml | 1 + crates/egui_glow/examples/pure_glow.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 521246f787f..c94baab2843 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -238,6 +238,7 @@ wildcard_dependencies = "warn" zero_sized_map_values = "warn" # TODO(emilk): enable more of these linits: +iter_over_hash_type = "allow" let_underscore_untyped = "allow" missing_assert_message = "allow" print_stderr = "allow" # TODO(emilk): use `log` crate insteaditer_over_hash_type = "allow" diff --git a/crates/egui_glow/examples/pure_glow.rs b/crates/egui_glow/examples/pure_glow.rs index 3da382af6ec..a857935afea 100644 --- a/crates/egui_glow/examples/pure_glow.rs +++ b/crates/egui_glow/examples/pure_glow.rs @@ -1,8 +1,10 @@ //! Example how to use pure `egui_glow`. #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release +#![allow(clippy::undocumented_unsafe_blocks)] +#![allow(clippy::arc_with_non_send_sync)] +// `clippy::arc_with_non_send_sync`: `glow::Context` was accidentally non-Sync in glow 0.13, but that will be fixed in future releases of glow: https://github.com/grovesNL/glow/commit/c4a5f7151b9b4bbb380faa06ec27415235d1bf7e #![allow(unsafe_code)] -#![allow(clippy::arc_with_non_send_sync)] // glow::Context was accidentally non-Sync in glow 0.13, but that will be fixed in future releases of glow: https://github.com/grovesNL/glow/commit/c4a5f7151b9b4bbb380faa06ec27415235d1bf7e use std::num::NonZeroU32;