From d15b97d70fb1d843362347b84ae580de47a1722e Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Mon, 1 Feb 2021 10:55:33 -0800 Subject: [PATCH] just ignore all warnings on MouseCursor rather than ignore 4 separate warnings for it --- imgui/src/input/mouse.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/imgui/src/input/mouse.rs b/imgui/src/input/mouse.rs index e194ee6..5d6e949 100644 --- a/imgui/src/input/mouse.rs +++ b/imgui/src/input/mouse.rs @@ -36,8 +36,11 @@ fn test_mouse_button_variants() { /// Mouse cursor type identifier #[repr(i32)] #[derive(Copy, Clone, Debug, Hash, Eq, PartialEq)] -#[allow(unknown_lints)] // Fixme: remove once `clippy::upper_case_acronyms` is stable -#[allow(clippy::upper_case_acronyms)] +// TODO: this should just be `#[allow(clippy::upper_case_acronyms)]`, but doing +// so in a way that works before it stabilizes is a pain (in part because +// `unknown_clippy_lints` was renamed to unknown_lints). Oh well, it's over a +// small amount of code. +#[allow(warnings)] pub enum MouseCursor { Arrow = sys::ImGuiMouseCursor_Arrow, /// Automatically used when hovering over text inputs, etc.