WIP - remove unnecessary #[derive(Debug)]

pull/2277/head
grdddj 2 years ago
parent 7a938de855
commit c46406a71a

@ -387,7 +387,7 @@ impl ButtonStyleSheet {
}
/// Describing the button in the choice item.
#[derive(Debug, Clone, Copy)]
#[derive(Clone, Copy)]
pub struct ButtonDetails<T> {
pub text: Option<T>,
pub icon: Option<Icon>,
@ -526,7 +526,7 @@ impl<T: Clone + AsRef<str>> ButtonDetails<T> {
}
/// Holding the button details for all three possible buttons.
#[derive(Debug, Clone)]
#[derive(Clone)]
pub struct ButtonLayout<T> {
pub btn_left: Option<ButtonDetails<T>>,
pub btn_middle: Option<ButtonDetails<T>>,
@ -608,7 +608,7 @@ impl ButtonLayout<&'static str> {
/// What happens when a button is triggered.
/// Theoretically any action can be connected
/// with any button.
#[derive(Clone, Debug, PartialEq, Eq)]
#[derive(Clone, PartialEq, Eq)]
pub enum ButtonAction {
/// Go to the next page of this flow
NextPage,
@ -666,7 +666,7 @@ impl ButtonAction {
// and only storing ButtonAction instead of Option<ButtonAction>...
/// Storing actions for all three possible buttons.
#[derive(Clone, Debug)]
#[derive(Clone)]
pub struct ButtonActions {
pub left: Option<ButtonAction>,
pub middle: Option<ButtonAction>,

@ -49,7 +49,7 @@ pub trait ChoiceItemAPI {
/// Storing all the possible implementations of `ChoiceItemAPI`.
/// Done like this as we want to use multiple different choice pages
/// at the same time in `ChoicePage` - for example Multiline and BigLetters
#[derive(Debug, Clone)]
#[derive(Clone)]
pub enum ChoiceItem {
Text(TextChoiceItem),
MultilineText(MultilineTextChoiceItem),
@ -128,7 +128,7 @@ impl ChoiceItemAPI for ChoiceItem {
}
/// Simple string component used as a choice item.
#[derive(Debug, Clone)]
#[derive(Clone)]
pub struct TextChoiceItem {
pub text: String<50>,
pub btn_layout: ButtonLayout<&'static str>,
@ -182,7 +182,7 @@ impl ChoiceItemAPI for TextChoiceItem {
/// Multiline string component used as a choice item.
///
/// Lines are delimited by '\n' character, unless specified explicitly.
#[derive(Debug, Clone)]
#[derive(Clone)]
pub struct MultilineTextChoiceItem {
// Arbitrary chosen. TODO: agree on this
pub text: String<50>,
@ -238,7 +238,7 @@ impl ChoiceItemAPI for MultilineTextChoiceItem {
/// Choice item displaying single characters in BIG font.
/// Middle choice is magnified 4 times, left and right 2 times.
#[derive(Debug, Clone)]
#[derive(Clone)]
pub struct BigCharacterChoiceItem {
pub ch: char,
pub btn_layout: ButtonLayout<&'static str>,

Loading…
Cancel
Save