diff --git a/src/object_pool/object.rs b/src/object_pool/object.rs index da3b369..58b23d7 100644 --- a/src/object_pool/object.rs +++ b/src/object_pool/object.rs @@ -247,15 +247,15 @@ pub struct Button { #[derive(Debug, PartialEq, Clone, Copy)] pub enum ButtonState { - RELEASED, - LATCHED, + Released, + Latched, } impl From for bool { fn from(value: ButtonState) -> Self { match value { - ButtonState::RELEASED => false, - ButtonState::LATCHED => true, + ButtonState::Released => false, + ButtonState::Latched => true, } } } @@ -263,8 +263,8 @@ impl From for bool { impl From for ButtonState { fn from(value: bool) -> Self { match value { - false => ButtonState::RELEASED, - true => ButtonState::LATCHED, + false => ButtonState::Released, + true => ButtonState::Latched, } } }