Skip to content

Commit

Permalink
fix allow large enum
Browse files Browse the repository at this point in the history
  • Loading branch information
barsoosayque committed Sep 21, 2023
1 parent 60a2d34 commit 00b929d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/user_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ use crate::{
/// For example, this may store mouse, keyboard or gamepad input, including cross-device chords!
///
/// Suitable for use in an [`InputMap`](crate::input_map::InputMap)
// TODO: https://github.com/bevyengine/bevy/issues/3392
#[allow(clippy::large_enum_variant)]
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize, Reflect)]
pub enum UserInput {
/// A single button
Expand Down Expand Up @@ -360,8 +362,6 @@ impl From<Modifier> for UserInput {
/// require traits that are not object-safe.
///
/// Please contact the maintainers if you need support for another type!
// TODO: https://github.com/bevyengine/bevy/issues/3392
#[allow(clippy::large_enum_variant)]
#[non_exhaustive]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize, Reflect)]
pub enum InputKind {
Expand Down

0 comments on commit 00b929d

Please sign in to comment.