From b6481825864f25ba3bdaaa516d70cbd9f97a7bba Mon Sep 17 00:00:00 2001 From: Mateusz Faderewski Date: Fri, 3 Mar 2023 00:34:07 +0100 Subject: [PATCH] cleanup --- sw/deployer/src/main.rs | 4 ++-- sw/deployer/src/sc64/link.rs | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sw/deployer/src/main.rs b/sw/deployer/src/main.rs index 3457640..c2b52cb 100644 --- a/sw/deployer/src/main.rs +++ b/sw/deployer/src/main.rs @@ -161,7 +161,7 @@ struct FirmwareArgs { firmware: PathBuf, } -#[derive(Clone, Debug, ValueEnum)] +#[derive(Clone, ValueEnum)] enum SaveType { None, Eeprom4k, @@ -197,7 +197,7 @@ impl From for sc64::SaveType { } } -#[derive(Clone, Debug, ValueEnum)] +#[derive(Clone, ValueEnum)] enum TvType { PAL, NTSC, diff --git a/sw/deployer/src/sc64/link.rs b/sw/deployer/src/sc64/link.rs index d7e0a8f..c570d83 100644 --- a/sw/deployer/src/sc64/link.rs +++ b/sw/deployer/src/sc64/link.rs @@ -1,27 +1,23 @@ use super::{error::Error, utils}; use std::{collections::VecDeque, time::Duration}; -#[derive(Clone, Debug)] pub struct Device { pub sn: String, pub port: String, } -#[derive(Clone, Debug)] pub struct Command { pub id: u8, pub args: [u32; 2], pub data: Vec, } -#[derive(Clone, Debug)] pub struct Response { pub id: u8, pub data: Vec, pub error: bool, } -#[derive(Clone, Debug)] pub struct Packet { pub id: u8, pub data: Vec,