mirror of
https://github.com/figsoda/mmtc
synced 2024-11-22 07:03:05 +00:00
remove unecessary derives
This commit is contained in:
parent
1f7f7e483e
commit
29c70e78da
2 changed files with 5 additions and 8 deletions
|
@ -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,
|
||||
|
|
|
@ -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>,
|
||||
|
|
Loading…
Reference in a new issue