just ignore all warnings on MouseCursor rather than ignore 4 separate warnings for it

This commit is contained in:
Thom Chiovoloni 2021-02-01 10:55:33 -08:00
parent aa1cbed2ca
commit d15b97d70f

View File

@ -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.