commands: fix clippy warnings about confusing elided lifetimes

This commit is contained in:
2025-10-12 22:59:50 +09:00
parent 484b1fb68d
commit 1d693b7b2a
130 changed files with 131 additions and 131 deletions

View File

@@ -19,7 +19,7 @@ impl Command for EnableOutput {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -30,7 +30,7 @@ impl Command for Outputs {
fn parse_response(
_parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -28,7 +28,7 @@ impl Command for OutputSet {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -19,7 +19,7 @@ impl Command for ToggleOutput {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -24,7 +24,7 @@ impl Command for Channels {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: Vec<_> = parts.into();
let mut channel_names = Vec::with_capacity(parts.len());
for (key, value) in parts {

View File

@@ -24,7 +24,7 @@ impl Command for ReadMessages {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: Vec<_> = parts.into();
debug_assert!(parts.len() % 2 == 0);

View File

@@ -22,7 +22,7 @@ impl Command for SendMessage {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -19,7 +19,7 @@ impl Command for Subscribe {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -19,7 +19,7 @@ impl Command for Unsubscribe {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -20,7 +20,7 @@ impl Command for BinaryLimit {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -15,7 +15,7 @@ impl Command for Close {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -15,7 +15,7 @@ impl Command for Kill {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -20,7 +20,7 @@ impl Command for Password {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -15,7 +15,7 @@ impl Command for Ping {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -16,7 +16,7 @@ impl Command for Protocol {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -16,7 +16,7 @@ impl Command for ProtocolAll {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -16,7 +16,7 @@ impl Command for ProtocolAvailable {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -16,7 +16,7 @@ impl Command for ProtocolClear {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -28,7 +28,7 @@ impl Command for ProtocolDisable {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -28,7 +28,7 @@ impl Command for ProtocolEnable {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -18,7 +18,7 @@ impl Command for TagTypes {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: Vec<_> = parts.into();
let mut tagtypes = Vec::with_capacity(parts.len());

View File

@@ -16,7 +16,7 @@ impl Command for TagTypesAll {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -16,7 +16,7 @@ impl Command for TagTypesAvailable {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -16,7 +16,7 @@ impl Command for TagTypesClear {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -28,7 +28,7 @@ impl Command for TagTypesDisable {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -28,7 +28,7 @@ impl Command for TagTypesEnable {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -28,7 +28,7 @@ impl Command for TagTypesReset {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -15,7 +15,7 @@ impl Command for Next {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -24,7 +24,7 @@ impl Command for Pause {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -27,7 +27,7 @@ impl Command for Play {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -27,7 +27,7 @@ impl Command for PlayId {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -15,7 +15,7 @@ impl Command for Previous {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -34,7 +34,7 @@ impl Command for Seek {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -46,7 +46,7 @@ impl Command for SeekCur {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -34,7 +34,7 @@ impl Command for SeekId {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -15,7 +15,7 @@ impl Command for Stop {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -16,7 +16,7 @@ impl Command for ListMounts {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -16,7 +16,7 @@ impl Command for ListNeighbors {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -29,7 +29,7 @@ impl Command for Mount {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -24,7 +24,7 @@ impl Command for Unmount {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -39,7 +39,7 @@ impl Command for AlbumArt {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: HashMap<_, _> = parts.into();
let size = get_and_parse_property!(parts, "size", Text);

View File

@@ -41,7 +41,7 @@ impl Command for Count {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: HashMap<_, _> = parts.into();
let songs = get_and_parse_property!(parts, "songs", Text);

View File

@@ -45,7 +45,7 @@ impl Command for Find {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -53,7 +53,7 @@ impl Command for FindAdd {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -28,7 +28,7 @@ impl Command for GetFingerprint {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: HashMap<_, _> = parts.into();
let chromaprint = get_and_parse_property!(parts, "chromaprint", Text);

View File

@@ -41,7 +41,7 @@ impl Command for List {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!({
let key = parts.0.first().map(|(k, _)| k);
parts.0.iter().all(|(k, _)| k == key.unwrap())

View File

@@ -28,7 +28,7 @@ impl Command for ListAll {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -29,7 +29,7 @@ impl Command for ListAllInfo {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -28,7 +28,7 @@ impl Command for ListFiles {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -28,7 +28,7 @@ impl Command for LsInfo {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -26,7 +26,7 @@ impl Command for ReadComments {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: HashMap<_, _> = parts.into();
let comments = parts

View File

@@ -40,7 +40,7 @@ impl Command for ReadPicture {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: HashMap<_, _> = parts.into();
if parts.is_empty() {

View File

@@ -25,7 +25,7 @@ impl Command for Rescan {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: HashMap<_, _> = parts.into();
let updating_db = get_and_parse_property!(parts, "updating_db", Text);

View File

@@ -45,7 +45,7 @@ impl Command for Search {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -53,7 +53,7 @@ impl Command for SearchAdd {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -61,7 +61,7 @@ impl Command for SearchAddPl {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -40,7 +40,7 @@ impl Command for SearchCount {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: HashMap<_, _> = parts.into();
let songs = get_and_parse_property!(parts, "songs", Text);

View File

@@ -25,7 +25,7 @@ impl Command for Update {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: HashMap<_, _> = parts.into();
let updating_db = get_and_parse_property!(parts, "updating_db", Text);

View File

@@ -22,7 +22,7 @@ impl Command for DelPartition {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -18,7 +18,7 @@ impl Command for ListPartitions {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: Vec<_> = parts.into();
let mut partitions = Vec::with_capacity(parts.len());

View File

@@ -22,7 +22,7 @@ impl Command for MoveOutput {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -22,7 +22,7 @@ impl Command for NewPartition {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -22,7 +22,7 @@ impl Command for Partition {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -25,7 +25,7 @@ impl Command for Consume {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -27,7 +27,7 @@ impl Command for Crossfade {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -21,7 +21,7 @@ impl Command for GetVol {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: HashMap<_, _> = parts.into();
assert_eq!(parts.len(), 1);
let volume = get_and_parse_property!(parts, "volume", Text);

View File

@@ -24,7 +24,7 @@ impl Command for MixRampDb {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -27,7 +27,7 @@ impl Command for MixRampDelay {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -24,7 +24,7 @@ impl Command for Random {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -24,7 +24,7 @@ impl Command for Repeat {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -28,7 +28,7 @@ impl Command for ReplayGainMode {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -28,7 +28,7 @@ impl Command for ReplayGainStatus {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: HashMap<_, _> = parts.into();
let replay_gain_mode = get_property!(parts, "replay_gain_mode", Text);

View File

@@ -28,7 +28,7 @@ impl Command for SetVol {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -25,7 +25,7 @@ impl Command for Single {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -28,7 +28,7 @@ impl Command for Volume {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -17,7 +17,7 @@ impl Command for ClearError {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -22,7 +22,7 @@ impl Command for CurrentSong {
fn parse_response(
_parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -30,7 +30,7 @@ impl Command for Idle {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -32,7 +32,7 @@ impl Command for Stats {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: HashMap<_, _> = parts.into();
let uptime = get_and_parse_property!(parts, "uptime", Text);

View File

@@ -63,7 +63,7 @@ pub struct StatusResponse {
#[inline]
fn parse_status_response(
parts: ResponseAttributes<'_>,
) -> Result<StatusResponse, ResponseParserError> {
) -> Result<StatusResponse, ResponseParserError<'_>> {
let parts: HashMap<&str, GenericResponseValue> = parts.into();
let partition = get_property!(parts, "partition", Text).to_string();
@@ -170,7 +170,7 @@ impl Command for Status {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
parse_status_response(parts)
}
}

View File

@@ -33,7 +33,7 @@ impl Command for Add {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -37,7 +37,7 @@ impl Command for AddId {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
let parts: Vec<_> = parts.into();
let mut iter = parts.into_iter();
let (key, id) = get_next_and_parse_property!(iter, Text);

View File

@@ -34,7 +34,7 @@ impl Command for AddTagId {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -15,7 +15,7 @@ impl Command for Clear {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -29,7 +29,7 @@ impl Command for ClearTagId {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -26,7 +26,7 @@ impl Command for Delete {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -24,7 +24,7 @@ impl Command for DeleteId {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -29,7 +29,7 @@ impl Command for Move {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -29,7 +29,7 @@ impl Command for MoveId {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -16,7 +16,7 @@ impl Command for Playlist {
fn parse_response(
_parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -43,7 +43,7 @@ impl Command for PlaylistFind {
fn parse_response(
_parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -24,7 +24,7 @@ impl Command for PlaylistId {
fn parse_response(
_parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -27,7 +27,7 @@ impl Command for PlaylistInfo {
fn parse_response(
_parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -43,7 +43,7 @@ impl Command for PlaylistSearch {
fn parse_response(
_parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -32,7 +32,7 @@ impl Command for PlChanges {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -32,7 +32,7 @@ impl Command for PlChangesPosId {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
unimplemented!()
}
}

View File

@@ -29,7 +29,7 @@ impl Command for Prio {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -34,7 +34,7 @@ impl Command for PrioId {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -29,7 +29,7 @@ impl Command for RangeId {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

View File

@@ -28,7 +28,7 @@ impl Command for Shuffle {
fn parse_response(
parts: ResponseAttributes<'_>,
) -> Result<Self::Response, ResponseParserError> {
) -> Result<Self::Response, ResponseParserError<'_>> {
debug_assert!(parts.is_empty());
Ok(())
}

Some files were not shown because too many files have changed in this diff Show More