remove unecessary derives

This commit is contained in:
figsoda 2020-10-30 21:50:35 -04:00
parent 1f7f7e483e
commit 29c70e78da
2 changed files with 5 additions and 8 deletions

View file

@ -9,7 +9,7 @@ use std::{
fmt::{self, Formatter},
};
#[derive(Debug, Deserialize)]
#[derive(Deserialize)]
pub struct Config {
#[serde(default = "fps_default")]
pub fps: f64,
@ -26,7 +26,7 @@ fn ups_default() -> f64 {
4.0
}
#[derive(Debug, Deserialize)]
#[derive(Deserialize)]
pub enum Widget {
Rows(Vec<Constrained<Widget>>),
Columns(Vec<Constrained<Widget>>),
@ -34,7 +34,7 @@ pub enum Widget {
Queue { columns: Vec<Constrained<Texts>> },
}
#[derive(Debug, Deserialize)]
#[derive(Deserialize)]
pub enum Constrained<T> {
Max(u16, T),
Min(u16, T),
@ -42,7 +42,6 @@ pub enum Constrained<T> {
Ratio(u32, T),
}
#[derive(Debug)]
pub enum Texts {
Empty,
Text(String),
@ -61,7 +60,7 @@ pub enum Texts {
If(Condition, Box<Texts>, Box<Texts>),
}
#[derive(Debug, Deserialize)]
#[derive(Deserialize)]
pub enum Condition {
Playing,
Repeat,

View file

@ -11,7 +11,6 @@ use crate::fail;
pub type Client = BufReader<TcpStream>;
#[derive(Clone)]
pub struct Status {
pub repeat: bool,
pub random: bool,
@ -20,13 +19,12 @@ pub struct Status {
pub song: Option<Song>,
}
#[derive(Clone)]
pub struct Song {
pub pos: usize,
pub elapsed: u16,
}
#[derive(Clone)]
pub struct Track {
pub file: String,
pub artist: Option<String>,