Cargo fmt
This commit is contained in:
@@ -104,7 +104,6 @@ pub enum ResponseParserError<'a> {
|
|||||||
|
|
||||||
/// Response ended early, while more properties were expected.
|
/// Response ended early, while more properties were expected.
|
||||||
UnexpectedEOF,
|
UnexpectedEOF,
|
||||||
|
|
||||||
// MissingNewline,
|
// MissingNewline,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,4 +35,4 @@ pub type Feature = String;
|
|||||||
pub type PartitionName = String;
|
pub type PartitionName = String;
|
||||||
pub type AudioOutputId = String;
|
pub type AudioOutputId = String;
|
||||||
pub type ChannelName = String;
|
pub type ChannelName = String;
|
||||||
pub type StickerType = String;
|
pub type StickerType = String;
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ use serde::{Deserialize, Serialize};
|
|||||||
|
|
||||||
use super::SongPosition;
|
use super::SongPosition;
|
||||||
|
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||||
pub enum AbsouluteRelativeSongPosition {
|
pub enum AbsouluteRelativeSongPosition {
|
||||||
Absolute(SongPosition),
|
Absolute(SongPosition),
|
||||||
@@ -22,4 +21,4 @@ impl FromStr for AbsouluteRelativeSongPosition {
|
|||||||
s => Self::Absolute(s.parse().map_err(|_| ())?),
|
s => Self::Absolute(s.parse().map_err(|_| ())?),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ use std::str::FromStr;
|
|||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Audio {
|
pub struct Audio {
|
||||||
pub sample_rate: u64,
|
pub sample_rate: u64,
|
||||||
@@ -24,4 +23,4 @@ impl FromStr for Audio {
|
|||||||
channels,
|
channels,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,4 +20,4 @@ impl FromStr for BoolOrOneshot {
|
|||||||
_ => return Err(()),
|
_ => return Err(()),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,4 +21,4 @@ impl FromStr for OneOrRange {
|
|||||||
None => Self::One(start),
|
None => Self::One(start),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ use std::str::FromStr;
|
|||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
|
|
||||||
/// These are different parts of the canonical MPD server.
|
/// These are different parts of the canonical MPD server.
|
||||||
/// They are mostly used in the protocol with the `idle` command,
|
/// They are mostly used in the protocol with the `idle` command,
|
||||||
/// signalling that the client is waiting for changes in any, one or multiple of these subsystems.
|
/// signalling that the client is waiting for changes in any, one or multiple of these subsystems.
|
||||||
@@ -63,4 +62,4 @@ impl FromStr for SubSystem {
|
|||||||
other => Self::Other(other.to_string()),
|
other => Self::Other(other.to_string()),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,4 +118,4 @@ impl Tag {
|
|||||||
other => Self::Other(other.to_string(), value),
|
other => Self::Other(other.to_string(), value),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,4 +22,4 @@ impl FromStr for TimeInterval {
|
|||||||
end: end.transpose()?,
|
end: end.transpose()?,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ use serde::{Deserialize, Serialize};
|
|||||||
|
|
||||||
use super::SongPosition;
|
use super::SongPosition;
|
||||||
|
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct WindowRange {
|
pub struct WindowRange {
|
||||||
pub start: SongPosition,
|
pub start: SongPosition,
|
||||||
@@ -23,4 +22,4 @@ impl FromStr for WindowRange {
|
|||||||
end: end.transpose()?,
|
end: end.transpose()?,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user