diff --git a/src/commands/audio_output_devices/enableoutput.rs b/src/commands/audio_output_devices/enableoutput.rs index ab5b5551..e2294904 100644 --- a/src/commands/audio_output_devices/enableoutput.rs +++ b/src/commands/audio_output_devices/enableoutput.rs @@ -19,7 +19,7 @@ impl Command for EnableOutput { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/audio_output_devices/outputs.rs b/src/commands/audio_output_devices/outputs.rs index 5cd9aeb6..b9ca55fc 100644 --- a/src/commands/audio_output_devices/outputs.rs +++ b/src/commands/audio_output_devices/outputs.rs @@ -30,7 +30,7 @@ impl Command for Outputs { fn parse_response( _parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/audio_output_devices/outputset.rs b/src/commands/audio_output_devices/outputset.rs index 0e55dcb5..d87e9d2c 100644 --- a/src/commands/audio_output_devices/outputset.rs +++ b/src/commands/audio_output_devices/outputset.rs @@ -28,7 +28,7 @@ impl Command for OutputSet { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/audio_output_devices/toggleoutput.rs b/src/commands/audio_output_devices/toggleoutput.rs index 8601f557..a9da3a0b 100644 --- a/src/commands/audio_output_devices/toggleoutput.rs +++ b/src/commands/audio_output_devices/toggleoutput.rs @@ -19,7 +19,7 @@ impl Command for ToggleOutput { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/client_to_client/channels.rs b/src/commands/client_to_client/channels.rs index b1197634..ff2f7c40 100644 --- a/src/commands/client_to_client/channels.rs +++ b/src/commands/client_to_client/channels.rs @@ -24,7 +24,7 @@ impl Command for Channels { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: Vec<_> = parts.into(); let mut channel_names = Vec::with_capacity(parts.len()); for (key, value) in parts { diff --git a/src/commands/client_to_client/readmessages.rs b/src/commands/client_to_client/readmessages.rs index cf2aea5a..6f4086d7 100644 --- a/src/commands/client_to_client/readmessages.rs +++ b/src/commands/client_to_client/readmessages.rs @@ -24,7 +24,7 @@ impl Command for ReadMessages { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: Vec<_> = parts.into(); debug_assert!(parts.len() % 2 == 0); diff --git a/src/commands/client_to_client/sendmessage.rs b/src/commands/client_to_client/sendmessage.rs index 292b1bc2..07b848ae 100644 --- a/src/commands/client_to_client/sendmessage.rs +++ b/src/commands/client_to_client/sendmessage.rs @@ -22,7 +22,7 @@ impl Command for SendMessage { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/client_to_client/subscribe.rs b/src/commands/client_to_client/subscribe.rs index d76f1756..9fefc681 100644 --- a/src/commands/client_to_client/subscribe.rs +++ b/src/commands/client_to_client/subscribe.rs @@ -19,7 +19,7 @@ impl Command for Subscribe { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/client_to_client/unsubscribe.rs b/src/commands/client_to_client/unsubscribe.rs index 0a3ff593..9d19286c 100644 --- a/src/commands/client_to_client/unsubscribe.rs +++ b/src/commands/client_to_client/unsubscribe.rs @@ -19,7 +19,7 @@ impl Command for Unsubscribe { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/connection_settings/binary_limit.rs b/src/commands/connection_settings/binary_limit.rs index 438ad309..bb262b19 100644 --- a/src/commands/connection_settings/binary_limit.rs +++ b/src/commands/connection_settings/binary_limit.rs @@ -20,7 +20,7 @@ impl Command for BinaryLimit { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/connection_settings/close.rs b/src/commands/connection_settings/close.rs index b46d3d0b..4d228998 100644 --- a/src/commands/connection_settings/close.rs +++ b/src/commands/connection_settings/close.rs @@ -15,7 +15,7 @@ impl Command for Close { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/connection_settings/kill.rs b/src/commands/connection_settings/kill.rs index 01d2a6a9..58382f86 100644 --- a/src/commands/connection_settings/kill.rs +++ b/src/commands/connection_settings/kill.rs @@ -15,7 +15,7 @@ impl Command for Kill { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/connection_settings/password.rs b/src/commands/connection_settings/password.rs index 56ecdc98..94ff0d25 100644 --- a/src/commands/connection_settings/password.rs +++ b/src/commands/connection_settings/password.rs @@ -20,7 +20,7 @@ impl Command for Password { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/connection_settings/ping.rs b/src/commands/connection_settings/ping.rs index 600594c6..47286fa1 100644 --- a/src/commands/connection_settings/ping.rs +++ b/src/commands/connection_settings/ping.rs @@ -15,7 +15,7 @@ impl Command for Ping { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/connection_settings/protocol.rs b/src/commands/connection_settings/protocol.rs index 6f0b3129..98232c35 100644 --- a/src/commands/connection_settings/protocol.rs +++ b/src/commands/connection_settings/protocol.rs @@ -16,7 +16,7 @@ impl Command for Protocol { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/connection_settings/protocol_all.rs b/src/commands/connection_settings/protocol_all.rs index 86405a93..30e5f7b7 100644 --- a/src/commands/connection_settings/protocol_all.rs +++ b/src/commands/connection_settings/protocol_all.rs @@ -16,7 +16,7 @@ impl Command for ProtocolAll { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/connection_settings/protocol_available.rs b/src/commands/connection_settings/protocol_available.rs index 4e89a5d9..8cd09ffc 100644 --- a/src/commands/connection_settings/protocol_available.rs +++ b/src/commands/connection_settings/protocol_available.rs @@ -16,7 +16,7 @@ impl Command for ProtocolAvailable { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/connection_settings/protocol_clear.rs b/src/commands/connection_settings/protocol_clear.rs index b1f3505d..b03a6aea 100644 --- a/src/commands/connection_settings/protocol_clear.rs +++ b/src/commands/connection_settings/protocol_clear.rs @@ -16,7 +16,7 @@ impl Command for ProtocolClear { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/connection_settings/protocol_disable.rs b/src/commands/connection_settings/protocol_disable.rs index e8b6b9f9..cbced2f3 100644 --- a/src/commands/connection_settings/protocol_disable.rs +++ b/src/commands/connection_settings/protocol_disable.rs @@ -28,7 +28,7 @@ impl Command for ProtocolDisable { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/connection_settings/protocol_enable.rs b/src/commands/connection_settings/protocol_enable.rs index ae2caf52..80496968 100644 --- a/src/commands/connection_settings/protocol_enable.rs +++ b/src/commands/connection_settings/protocol_enable.rs @@ -28,7 +28,7 @@ impl Command for ProtocolEnable { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/connection_settings/tag_types.rs b/src/commands/connection_settings/tag_types.rs index 74b3d91a..650b1c20 100644 --- a/src/commands/connection_settings/tag_types.rs +++ b/src/commands/connection_settings/tag_types.rs @@ -18,7 +18,7 @@ impl Command for TagTypes { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: Vec<_> = parts.into(); let mut tagtypes = Vec::with_capacity(parts.len()); diff --git a/src/commands/connection_settings/tag_types_all.rs b/src/commands/connection_settings/tag_types_all.rs index ddd9fb92..1913850f 100644 --- a/src/commands/connection_settings/tag_types_all.rs +++ b/src/commands/connection_settings/tag_types_all.rs @@ -16,7 +16,7 @@ impl Command for TagTypesAll { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/connection_settings/tag_types_available.rs b/src/commands/connection_settings/tag_types_available.rs index 43f80b4f..3bada4da 100644 --- a/src/commands/connection_settings/tag_types_available.rs +++ b/src/commands/connection_settings/tag_types_available.rs @@ -16,7 +16,7 @@ impl Command for TagTypesAvailable { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/connection_settings/tag_types_clear.rs b/src/commands/connection_settings/tag_types_clear.rs index 27dc3ab2..dd254949 100644 --- a/src/commands/connection_settings/tag_types_clear.rs +++ b/src/commands/connection_settings/tag_types_clear.rs @@ -16,7 +16,7 @@ impl Command for TagTypesClear { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/connection_settings/tag_types_disable.rs b/src/commands/connection_settings/tag_types_disable.rs index 92ca0e85..63f2af23 100644 --- a/src/commands/connection_settings/tag_types_disable.rs +++ b/src/commands/connection_settings/tag_types_disable.rs @@ -28,7 +28,7 @@ impl Command for TagTypesDisable { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/connection_settings/tag_types_enable.rs b/src/commands/connection_settings/tag_types_enable.rs index 31544316..2bd483d0 100644 --- a/src/commands/connection_settings/tag_types_enable.rs +++ b/src/commands/connection_settings/tag_types_enable.rs @@ -28,7 +28,7 @@ impl Command for TagTypesEnable { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/connection_settings/tag_types_reset.rs b/src/commands/connection_settings/tag_types_reset.rs index 0c91757c..0c834d46 100644 --- a/src/commands/connection_settings/tag_types_reset.rs +++ b/src/commands/connection_settings/tag_types_reset.rs @@ -28,7 +28,7 @@ impl Command for TagTypesReset { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/controlling_playback/next.rs b/src/commands/controlling_playback/next.rs index aff182f5..d0122f18 100644 --- a/src/commands/controlling_playback/next.rs +++ b/src/commands/controlling_playback/next.rs @@ -15,7 +15,7 @@ impl Command for Next { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/controlling_playback/pause.rs b/src/commands/controlling_playback/pause.rs index 3203afc6..7714e999 100644 --- a/src/commands/controlling_playback/pause.rs +++ b/src/commands/controlling_playback/pause.rs @@ -24,7 +24,7 @@ impl Command for Pause { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/controlling_playback/play.rs b/src/commands/controlling_playback/play.rs index 6dfd166f..e4b0ffb6 100644 --- a/src/commands/controlling_playback/play.rs +++ b/src/commands/controlling_playback/play.rs @@ -27,7 +27,7 @@ impl Command for Play { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/controlling_playback/playid.rs b/src/commands/controlling_playback/playid.rs index 112f2e93..738148b1 100644 --- a/src/commands/controlling_playback/playid.rs +++ b/src/commands/controlling_playback/playid.rs @@ -27,7 +27,7 @@ impl Command for PlayId { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/controlling_playback/previous.rs b/src/commands/controlling_playback/previous.rs index fa61a147..ff60ffc1 100644 --- a/src/commands/controlling_playback/previous.rs +++ b/src/commands/controlling_playback/previous.rs @@ -15,7 +15,7 @@ impl Command for Previous { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/controlling_playback/seek.rs b/src/commands/controlling_playback/seek.rs index e0a4bf17..d328d211 100644 --- a/src/commands/controlling_playback/seek.rs +++ b/src/commands/controlling_playback/seek.rs @@ -34,7 +34,7 @@ impl Command for Seek { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/controlling_playback/seekcur.rs b/src/commands/controlling_playback/seekcur.rs index ece1dbe5..1715717c 100644 --- a/src/commands/controlling_playback/seekcur.rs +++ b/src/commands/controlling_playback/seekcur.rs @@ -46,7 +46,7 @@ impl Command for SeekCur { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/controlling_playback/seekid.rs b/src/commands/controlling_playback/seekid.rs index 8cee87b2..411fbb52 100644 --- a/src/commands/controlling_playback/seekid.rs +++ b/src/commands/controlling_playback/seekid.rs @@ -34,7 +34,7 @@ impl Command for SeekId { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/controlling_playback/stop.rs b/src/commands/controlling_playback/stop.rs index dd9937c1..154c537b 100644 --- a/src/commands/controlling_playback/stop.rs +++ b/src/commands/controlling_playback/stop.rs @@ -15,7 +15,7 @@ impl Command for Stop { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/mounts_and_neighbors/listmounts.rs b/src/commands/mounts_and_neighbors/listmounts.rs index 3913f570..91b05c0c 100644 --- a/src/commands/mounts_and_neighbors/listmounts.rs +++ b/src/commands/mounts_and_neighbors/listmounts.rs @@ -16,7 +16,7 @@ impl Command for ListMounts { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/mounts_and_neighbors/listneighbors.rs b/src/commands/mounts_and_neighbors/listneighbors.rs index dd159107..0c81b4d4 100644 --- a/src/commands/mounts_and_neighbors/listneighbors.rs +++ b/src/commands/mounts_and_neighbors/listneighbors.rs @@ -16,7 +16,7 @@ impl Command for ListNeighbors { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/mounts_and_neighbors/mount.rs b/src/commands/mounts_and_neighbors/mount.rs index c639af85..31c4ff54 100644 --- a/src/commands/mounts_and_neighbors/mount.rs +++ b/src/commands/mounts_and_neighbors/mount.rs @@ -29,7 +29,7 @@ impl Command for Mount { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/mounts_and_neighbors/unmount.rs b/src/commands/mounts_and_neighbors/unmount.rs index 5f0beb63..0a04acc8 100644 --- a/src/commands/mounts_and_neighbors/unmount.rs +++ b/src/commands/mounts_and_neighbors/unmount.rs @@ -24,7 +24,7 @@ impl Command for Unmount { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/music_database/albumart.rs b/src/commands/music_database/albumart.rs index ee0125f1..d8313d34 100644 --- a/src/commands/music_database/albumart.rs +++ b/src/commands/music_database/albumart.rs @@ -39,7 +39,7 @@ impl Command for AlbumArt { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: HashMap<_, _> = parts.into(); let size = get_and_parse_property!(parts, "size", Text); diff --git a/src/commands/music_database/count.rs b/src/commands/music_database/count.rs index d8c614bb..00bb1312 100644 --- a/src/commands/music_database/count.rs +++ b/src/commands/music_database/count.rs @@ -41,7 +41,7 @@ impl Command for Count { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: HashMap<_, _> = parts.into(); let songs = get_and_parse_property!(parts, "songs", Text); diff --git a/src/commands/music_database/find.rs b/src/commands/music_database/find.rs index fd73ac97..4ce5cd66 100644 --- a/src/commands/music_database/find.rs +++ b/src/commands/music_database/find.rs @@ -45,7 +45,7 @@ impl Command for Find { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/music_database/findadd.rs b/src/commands/music_database/findadd.rs index 3ef977db..019c21ac 100644 --- a/src/commands/music_database/findadd.rs +++ b/src/commands/music_database/findadd.rs @@ -53,7 +53,7 @@ impl Command for FindAdd { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/music_database/getfingerprint.rs b/src/commands/music_database/getfingerprint.rs index 1c6bef39..4dfaf606 100644 --- a/src/commands/music_database/getfingerprint.rs +++ b/src/commands/music_database/getfingerprint.rs @@ -28,7 +28,7 @@ impl Command for GetFingerprint { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: HashMap<_, _> = parts.into(); let chromaprint = get_and_parse_property!(parts, "chromaprint", Text); diff --git a/src/commands/music_database/list.rs b/src/commands/music_database/list.rs index 3be9406e..eb90c0ce 100644 --- a/src/commands/music_database/list.rs +++ b/src/commands/music_database/list.rs @@ -41,7 +41,7 @@ impl Command for List { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!({ let key = parts.0.first().map(|(k, _)| k); parts.0.iter().all(|(k, _)| k == key.unwrap()) diff --git a/src/commands/music_database/listall.rs b/src/commands/music_database/listall.rs index 8156772e..9fa780e8 100644 --- a/src/commands/music_database/listall.rs +++ b/src/commands/music_database/listall.rs @@ -28,7 +28,7 @@ impl Command for ListAll { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/music_database/listallinfo.rs b/src/commands/music_database/listallinfo.rs index 49a8adb7..9b02d07d 100644 --- a/src/commands/music_database/listallinfo.rs +++ b/src/commands/music_database/listallinfo.rs @@ -29,7 +29,7 @@ impl Command for ListAllInfo { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/music_database/listfiles.rs b/src/commands/music_database/listfiles.rs index 241d3104..c3673a89 100644 --- a/src/commands/music_database/listfiles.rs +++ b/src/commands/music_database/listfiles.rs @@ -28,7 +28,7 @@ impl Command for ListFiles { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/music_database/lsinfo.rs b/src/commands/music_database/lsinfo.rs index 601804c5..b1a55d9e 100644 --- a/src/commands/music_database/lsinfo.rs +++ b/src/commands/music_database/lsinfo.rs @@ -28,7 +28,7 @@ impl Command for LsInfo { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/music_database/readcomments.rs b/src/commands/music_database/readcomments.rs index 73236f6a..d4f8da6c 100644 --- a/src/commands/music_database/readcomments.rs +++ b/src/commands/music_database/readcomments.rs @@ -26,7 +26,7 @@ impl Command for ReadComments { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: HashMap<_, _> = parts.into(); let comments = parts diff --git a/src/commands/music_database/readpicture.rs b/src/commands/music_database/readpicture.rs index bfa76cbb..86babc7f 100644 --- a/src/commands/music_database/readpicture.rs +++ b/src/commands/music_database/readpicture.rs @@ -40,7 +40,7 @@ impl Command for ReadPicture { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: HashMap<_, _> = parts.into(); if parts.is_empty() { diff --git a/src/commands/music_database/rescan.rs b/src/commands/music_database/rescan.rs index 6c8f2234..94022bfb 100644 --- a/src/commands/music_database/rescan.rs +++ b/src/commands/music_database/rescan.rs @@ -25,7 +25,7 @@ impl Command for Rescan { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: HashMap<_, _> = parts.into(); let updating_db = get_and_parse_property!(parts, "updating_db", Text); diff --git a/src/commands/music_database/search.rs b/src/commands/music_database/search.rs index 0f7b99c5..fe7bcdc4 100644 --- a/src/commands/music_database/search.rs +++ b/src/commands/music_database/search.rs @@ -45,7 +45,7 @@ impl Command for Search { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/music_database/searchadd.rs b/src/commands/music_database/searchadd.rs index 983e45df..2cc5b5d6 100644 --- a/src/commands/music_database/searchadd.rs +++ b/src/commands/music_database/searchadd.rs @@ -53,7 +53,7 @@ impl Command for SearchAdd { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/music_database/searchaddpl.rs b/src/commands/music_database/searchaddpl.rs index 44ecd04b..2e7fb8eb 100644 --- a/src/commands/music_database/searchaddpl.rs +++ b/src/commands/music_database/searchaddpl.rs @@ -61,7 +61,7 @@ impl Command for SearchAddPl { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/music_database/searchcount.rs b/src/commands/music_database/searchcount.rs index 3cb00da4..be481f9a 100644 --- a/src/commands/music_database/searchcount.rs +++ b/src/commands/music_database/searchcount.rs @@ -40,7 +40,7 @@ impl Command for SearchCount { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: HashMap<_, _> = parts.into(); let songs = get_and_parse_property!(parts, "songs", Text); diff --git a/src/commands/music_database/update.rs b/src/commands/music_database/update.rs index 137c248d..dd1406e9 100644 --- a/src/commands/music_database/update.rs +++ b/src/commands/music_database/update.rs @@ -25,7 +25,7 @@ impl Command for Update { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: HashMap<_, _> = parts.into(); let updating_db = get_and_parse_property!(parts, "updating_db", Text); diff --git a/src/commands/partition_commands/delpartition.rs b/src/commands/partition_commands/delpartition.rs index d961b7ba..f55e1624 100644 --- a/src/commands/partition_commands/delpartition.rs +++ b/src/commands/partition_commands/delpartition.rs @@ -22,7 +22,7 @@ impl Command for DelPartition { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/partition_commands/listpartitions.rs b/src/commands/partition_commands/listpartitions.rs index f5ca3451..8f6ecff4 100644 --- a/src/commands/partition_commands/listpartitions.rs +++ b/src/commands/partition_commands/listpartitions.rs @@ -18,7 +18,7 @@ impl Command for ListPartitions { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: Vec<_> = parts.into(); let mut partitions = Vec::with_capacity(parts.len()); diff --git a/src/commands/partition_commands/moveoutput.rs b/src/commands/partition_commands/moveoutput.rs index 0fa81881..fb99c855 100644 --- a/src/commands/partition_commands/moveoutput.rs +++ b/src/commands/partition_commands/moveoutput.rs @@ -22,7 +22,7 @@ impl Command for MoveOutput { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/partition_commands/newpartition.rs b/src/commands/partition_commands/newpartition.rs index 42afd92d..b8fd3b13 100644 --- a/src/commands/partition_commands/newpartition.rs +++ b/src/commands/partition_commands/newpartition.rs @@ -22,7 +22,7 @@ impl Command for NewPartition { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/partition_commands/partition.rs b/src/commands/partition_commands/partition.rs index 9a2584e1..162e5e54 100644 --- a/src/commands/partition_commands/partition.rs +++ b/src/commands/partition_commands/partition.rs @@ -22,7 +22,7 @@ impl Command for Partition { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/playback_options/consume.rs b/src/commands/playback_options/consume.rs index 727933a3..2bdbb3b3 100644 --- a/src/commands/playback_options/consume.rs +++ b/src/commands/playback_options/consume.rs @@ -25,7 +25,7 @@ impl Command for Consume { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/playback_options/crossfade.rs b/src/commands/playback_options/crossfade.rs index b94ee995..f22ce865 100644 --- a/src/commands/playback_options/crossfade.rs +++ b/src/commands/playback_options/crossfade.rs @@ -27,7 +27,7 @@ impl Command for Crossfade { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/playback_options/getvol.rs b/src/commands/playback_options/getvol.rs index 1befdca4..6b5745e5 100644 --- a/src/commands/playback_options/getvol.rs +++ b/src/commands/playback_options/getvol.rs @@ -21,7 +21,7 @@ impl Command for GetVol { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: HashMap<_, _> = parts.into(); assert_eq!(parts.len(), 1); let volume = get_and_parse_property!(parts, "volume", Text); diff --git a/src/commands/playback_options/mixrampdb.rs b/src/commands/playback_options/mixrampdb.rs index b80e94de..e554324f 100644 --- a/src/commands/playback_options/mixrampdb.rs +++ b/src/commands/playback_options/mixrampdb.rs @@ -24,7 +24,7 @@ impl Command for MixRampDb { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/playback_options/mixrampdelay.rs b/src/commands/playback_options/mixrampdelay.rs index c85224fa..d5b0c7e6 100644 --- a/src/commands/playback_options/mixrampdelay.rs +++ b/src/commands/playback_options/mixrampdelay.rs @@ -27,7 +27,7 @@ impl Command for MixRampDelay { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/playback_options/random.rs b/src/commands/playback_options/random.rs index 1445e538..9ff1c1df 100644 --- a/src/commands/playback_options/random.rs +++ b/src/commands/playback_options/random.rs @@ -24,7 +24,7 @@ impl Command for Random { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/playback_options/repeat.rs b/src/commands/playback_options/repeat.rs index 7432380f..f834eb78 100644 --- a/src/commands/playback_options/repeat.rs +++ b/src/commands/playback_options/repeat.rs @@ -24,7 +24,7 @@ impl Command for Repeat { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/playback_options/replay_gain_mode.rs b/src/commands/playback_options/replay_gain_mode.rs index 9719c9f0..ccb0d7fa 100644 --- a/src/commands/playback_options/replay_gain_mode.rs +++ b/src/commands/playback_options/replay_gain_mode.rs @@ -28,7 +28,7 @@ impl Command for ReplayGainMode { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/playback_options/replay_gain_status.rs b/src/commands/playback_options/replay_gain_status.rs index 7eb0d9ae..c7909591 100644 --- a/src/commands/playback_options/replay_gain_status.rs +++ b/src/commands/playback_options/replay_gain_status.rs @@ -28,7 +28,7 @@ impl Command for ReplayGainStatus { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: HashMap<_, _> = parts.into(); let replay_gain_mode = get_property!(parts, "replay_gain_mode", Text); diff --git a/src/commands/playback_options/setvol.rs b/src/commands/playback_options/setvol.rs index 964793b7..cce458bc 100644 --- a/src/commands/playback_options/setvol.rs +++ b/src/commands/playback_options/setvol.rs @@ -28,7 +28,7 @@ impl Command for SetVol { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/playback_options/single.rs b/src/commands/playback_options/single.rs index e9210d20..8bda8317 100644 --- a/src/commands/playback_options/single.rs +++ b/src/commands/playback_options/single.rs @@ -25,7 +25,7 @@ impl Command for Single { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/playback_options/volume.rs b/src/commands/playback_options/volume.rs index 3ee81ffe..7d761272 100644 --- a/src/commands/playback_options/volume.rs +++ b/src/commands/playback_options/volume.rs @@ -28,7 +28,7 @@ impl Command for Volume { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/querying_mpd_status/clearerror.rs b/src/commands/querying_mpd_status/clearerror.rs index 4fcb4fe1..bbc00ae1 100644 --- a/src/commands/querying_mpd_status/clearerror.rs +++ b/src/commands/querying_mpd_status/clearerror.rs @@ -17,7 +17,7 @@ impl Command for ClearError { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/querying_mpd_status/currentsong.rs b/src/commands/querying_mpd_status/currentsong.rs index 668b34d8..28005b02 100644 --- a/src/commands/querying_mpd_status/currentsong.rs +++ b/src/commands/querying_mpd_status/currentsong.rs @@ -22,7 +22,7 @@ impl Command for CurrentSong { fn parse_response( _parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/querying_mpd_status/idle.rs b/src/commands/querying_mpd_status/idle.rs index a939837d..0f6524f9 100644 --- a/src/commands/querying_mpd_status/idle.rs +++ b/src/commands/querying_mpd_status/idle.rs @@ -30,7 +30,7 @@ impl Command for Idle { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/querying_mpd_status/stats.rs b/src/commands/querying_mpd_status/stats.rs index a9343b1f..aa3f9230 100644 --- a/src/commands/querying_mpd_status/stats.rs +++ b/src/commands/querying_mpd_status/stats.rs @@ -32,7 +32,7 @@ impl Command for Stats { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: HashMap<_, _> = parts.into(); let uptime = get_and_parse_property!(parts, "uptime", Text); diff --git a/src/commands/querying_mpd_status/status.rs b/src/commands/querying_mpd_status/status.rs index 363ce208..527d6148 100644 --- a/src/commands/querying_mpd_status/status.rs +++ b/src/commands/querying_mpd_status/status.rs @@ -63,7 +63,7 @@ pub struct StatusResponse { #[inline] fn parse_status_response( parts: ResponseAttributes<'_>, -) -> Result { +) -> Result> { 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 { + ) -> Result> { parse_status_response(parts) } } diff --git a/src/commands/queue/add.rs b/src/commands/queue/add.rs index 3d2a2036..cb3dcccb 100644 --- a/src/commands/queue/add.rs +++ b/src/commands/queue/add.rs @@ -33,7 +33,7 @@ impl Command for Add { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/queue/addid.rs b/src/commands/queue/addid.rs index e3bfaf93..2701d170 100644 --- a/src/commands/queue/addid.rs +++ b/src/commands/queue/addid.rs @@ -37,7 +37,7 @@ impl Command for AddId { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: Vec<_> = parts.into(); let mut iter = parts.into_iter(); let (key, id) = get_next_and_parse_property!(iter, Text); diff --git a/src/commands/queue/addtagid.rs b/src/commands/queue/addtagid.rs index 46109229..6d374420 100644 --- a/src/commands/queue/addtagid.rs +++ b/src/commands/queue/addtagid.rs @@ -34,7 +34,7 @@ impl Command for AddTagId { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/queue/clear.rs b/src/commands/queue/clear.rs index 28d80d55..95876916 100644 --- a/src/commands/queue/clear.rs +++ b/src/commands/queue/clear.rs @@ -15,7 +15,7 @@ impl Command for Clear { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/queue/cleartagid.rs b/src/commands/queue/cleartagid.rs index 516e1e5d..85840d45 100644 --- a/src/commands/queue/cleartagid.rs +++ b/src/commands/queue/cleartagid.rs @@ -29,7 +29,7 @@ impl Command for ClearTagId { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/queue/delete.rs b/src/commands/queue/delete.rs index 77f1ae76..e6ef0c11 100644 --- a/src/commands/queue/delete.rs +++ b/src/commands/queue/delete.rs @@ -26,7 +26,7 @@ impl Command for Delete { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/queue/deleteid.rs b/src/commands/queue/deleteid.rs index b94e2549..b86773fa 100644 --- a/src/commands/queue/deleteid.rs +++ b/src/commands/queue/deleteid.rs @@ -24,7 +24,7 @@ impl Command for DeleteId { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/queue/move_.rs b/src/commands/queue/move_.rs index 449458eb..d627853d 100644 --- a/src/commands/queue/move_.rs +++ b/src/commands/queue/move_.rs @@ -29,7 +29,7 @@ impl Command for Move { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/queue/moveid.rs b/src/commands/queue/moveid.rs index fdded4fd..e59f22eb 100644 --- a/src/commands/queue/moveid.rs +++ b/src/commands/queue/moveid.rs @@ -29,7 +29,7 @@ impl Command for MoveId { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/queue/playlist.rs b/src/commands/queue/playlist.rs index 543ecf68..ac63aa85 100644 --- a/src/commands/queue/playlist.rs +++ b/src/commands/queue/playlist.rs @@ -16,7 +16,7 @@ impl Command for Playlist { fn parse_response( _parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/queue/playlistfind.rs b/src/commands/queue/playlistfind.rs index e80cb1dd..50b54187 100644 --- a/src/commands/queue/playlistfind.rs +++ b/src/commands/queue/playlistfind.rs @@ -43,7 +43,7 @@ impl Command for PlaylistFind { fn parse_response( _parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/queue/playlistid.rs b/src/commands/queue/playlistid.rs index 941c4dd3..64fcfffe 100644 --- a/src/commands/queue/playlistid.rs +++ b/src/commands/queue/playlistid.rs @@ -24,7 +24,7 @@ impl Command for PlaylistId { fn parse_response( _parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/queue/playlistinfo.rs b/src/commands/queue/playlistinfo.rs index f83dcf87..0115f0e9 100644 --- a/src/commands/queue/playlistinfo.rs +++ b/src/commands/queue/playlistinfo.rs @@ -27,7 +27,7 @@ impl Command for PlaylistInfo { fn parse_response( _parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/queue/playlistsearch.rs b/src/commands/queue/playlistsearch.rs index 15717945..d054023e 100644 --- a/src/commands/queue/playlistsearch.rs +++ b/src/commands/queue/playlistsearch.rs @@ -43,7 +43,7 @@ impl Command for PlaylistSearch { fn parse_response( _parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/queue/plchanges.rs b/src/commands/queue/plchanges.rs index e4385c4b..fdb04d1f 100644 --- a/src/commands/queue/plchanges.rs +++ b/src/commands/queue/plchanges.rs @@ -32,7 +32,7 @@ impl Command for PlChanges { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/queue/plchangesposid.rs b/src/commands/queue/plchangesposid.rs index ff104246..16bb20f2 100644 --- a/src/commands/queue/plchangesposid.rs +++ b/src/commands/queue/plchangesposid.rs @@ -32,7 +32,7 @@ impl Command for PlChangesPosId { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/queue/prio.rs b/src/commands/queue/prio.rs index 8c5bf6c4..fbbf87c5 100644 --- a/src/commands/queue/prio.rs +++ b/src/commands/queue/prio.rs @@ -29,7 +29,7 @@ impl Command for Prio { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/queue/prioid.rs b/src/commands/queue/prioid.rs index e1cb39b3..f2f9fe83 100644 --- a/src/commands/queue/prioid.rs +++ b/src/commands/queue/prioid.rs @@ -34,7 +34,7 @@ impl Command for PrioId { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/queue/rangeid.rs b/src/commands/queue/rangeid.rs index fa13c5c3..68c68180 100644 --- a/src/commands/queue/rangeid.rs +++ b/src/commands/queue/rangeid.rs @@ -29,7 +29,7 @@ impl Command for RangeId { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/queue/shuffle.rs b/src/commands/queue/shuffle.rs index db45423b..b0e8410f 100644 --- a/src/commands/queue/shuffle.rs +++ b/src/commands/queue/shuffle.rs @@ -28,7 +28,7 @@ impl Command for Shuffle { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/queue/swap.rs b/src/commands/queue/swap.rs index 9cadf418..7f588133 100644 --- a/src/commands/queue/swap.rs +++ b/src/commands/queue/swap.rs @@ -29,7 +29,7 @@ impl Command for Swap { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/queue/swapid.rs b/src/commands/queue/swapid.rs index e202d463..cb1e79b1 100644 --- a/src/commands/queue/swapid.rs +++ b/src/commands/queue/swapid.rs @@ -29,7 +29,7 @@ impl Command for SwapId { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/reflection/commands.rs b/src/commands/reflection/commands.rs index 3a36cb9f..84bca37b 100644 --- a/src/commands/reflection/commands.rs +++ b/src/commands/reflection/commands.rs @@ -18,7 +18,7 @@ impl Command for Commands { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: Vec<_> = parts.into(); let mut result = Vec::new(); for (key, value) in parts.into_iter() { diff --git a/src/commands/reflection/config.rs b/src/commands/reflection/config.rs index 7e15cc93..45fd61a3 100644 --- a/src/commands/reflection/config.rs +++ b/src/commands/reflection/config.rs @@ -24,7 +24,7 @@ impl Command for Config { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: HashMap<_, _> = parts.into(); let music_directory = get_property!(parts, "music_directory", Text).to_string(); diff --git a/src/commands/reflection/decoders.rs b/src/commands/reflection/decoders.rs index 95f93019..3b361100 100644 --- a/src/commands/reflection/decoders.rs +++ b/src/commands/reflection/decoders.rs @@ -23,7 +23,7 @@ impl Command for Decoders { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/reflection/not_commands.rs b/src/commands/reflection/not_commands.rs index a194e61e..f1a5af7f 100644 --- a/src/commands/reflection/not_commands.rs +++ b/src/commands/reflection/not_commands.rs @@ -18,7 +18,7 @@ impl Command for NotCommands { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: Vec<_> = parts.into(); let mut result = Vec::new(); for (key, value) in parts.into_iter() { diff --git a/src/commands/reflection/url_handlers.rs b/src/commands/reflection/url_handlers.rs index 1841f3c9..df060a7f 100644 --- a/src/commands/reflection/url_handlers.rs +++ b/src/commands/reflection/url_handlers.rs @@ -18,7 +18,7 @@ impl Command for UrlHandlers { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: Vec<_> = parts.into(); let mut url_handlers = Vec::new(); for (key, value) in parts.into_iter() { diff --git a/src/commands/stickers/sticker_dec.rs b/src/commands/stickers/sticker_dec.rs index 96565b3b..db9fa77e 100644 --- a/src/commands/stickers/sticker_dec.rs +++ b/src/commands/stickers/sticker_dec.rs @@ -37,7 +37,7 @@ impl Command for StickerDec { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) diff --git a/src/commands/stickers/sticker_delete.rs b/src/commands/stickers/sticker_delete.rs index 42e79d55..a9daf2a7 100644 --- a/src/commands/stickers/sticker_delete.rs +++ b/src/commands/stickers/sticker_delete.rs @@ -32,7 +32,7 @@ impl Command for StickerDelete { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) diff --git a/src/commands/stickers/sticker_find.rs b/src/commands/stickers/sticker_find.rs index 17ad4148..5f019359 100644 --- a/src/commands/stickers/sticker_find.rs +++ b/src/commands/stickers/sticker_find.rs @@ -67,7 +67,7 @@ impl Command for StickerFind { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: Vec<_> = parts.into(); let mut stickers = Vec::new(); diff --git a/src/commands/stickers/sticker_get.rs b/src/commands/stickers/sticker_get.rs index 74835867..e355c43f 100644 --- a/src/commands/stickers/sticker_get.rs +++ b/src/commands/stickers/sticker_get.rs @@ -34,7 +34,7 @@ impl Command for StickerGet { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: Vec<_> = parts.into(); let mut parts = parts.into_iter().peekable(); let (key, sticker) = get_next_property!(parts, Text); diff --git a/src/commands/stickers/sticker_inc.rs b/src/commands/stickers/sticker_inc.rs index 186b4a7b..012da77a 100644 --- a/src/commands/stickers/sticker_inc.rs +++ b/src/commands/stickers/sticker_inc.rs @@ -37,7 +37,7 @@ impl Command for StickerInc { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) diff --git a/src/commands/stickers/sticker_list.rs b/src/commands/stickers/sticker_list.rs index 7d510450..4af1aa61 100644 --- a/src/commands/stickers/sticker_list.rs +++ b/src/commands/stickers/sticker_list.rs @@ -31,7 +31,7 @@ impl Command for StickerList { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: Vec<_> = parts.into(); debug_assert!(parts.iter().all(|(k, _)| *k == "sticker")); diff --git a/src/commands/stickers/sticker_set.rs b/src/commands/stickers/sticker_set.rs index 7f7bf13e..8983b5b2 100644 --- a/src/commands/stickers/sticker_set.rs +++ b/src/commands/stickers/sticker_set.rs @@ -37,7 +37,7 @@ impl Command for StickerSet { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) diff --git a/src/commands/stickers/stickernames.rs b/src/commands/stickers/stickernames.rs index dc5543b3..b17a92c5 100644 --- a/src/commands/stickers/stickernames.rs +++ b/src/commands/stickers/stickernames.rs @@ -19,7 +19,7 @@ impl Command for StickerNames { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.0.iter().all(|(k, _)| *k == "name")); let list = parts diff --git a/src/commands/stickers/stickernamestypes.rs b/src/commands/stickers/stickernamestypes.rs index 03caa594..e9818b6e 100644 --- a/src/commands/stickers/stickernamestypes.rs +++ b/src/commands/stickers/stickernamestypes.rs @@ -23,7 +23,7 @@ impl Command for StickerNamesTypes { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: Vec<_> = parts.into(); let mut result = HashMap::new(); diff --git a/src/commands/stickers/stickertypes.rs b/src/commands/stickers/stickertypes.rs index 7486ec41..84e3727a 100644 --- a/src/commands/stickers/stickertypes.rs +++ b/src/commands/stickers/stickertypes.rs @@ -19,7 +19,7 @@ impl Command for StickerTypes { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.0.iter().all(|(k, _)| *k == "stickertype")); let list = parts diff --git a/src/commands/stored_playlists/listplaylist.rs b/src/commands/stored_playlists/listplaylist.rs index 4d7c2fb5..067d4c20 100644 --- a/src/commands/stored_playlists/listplaylist.rs +++ b/src/commands/stored_playlists/listplaylist.rs @@ -35,7 +35,7 @@ impl Command for ListPlaylist { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: Vec<_> = parts.into(); parts .into_iter() diff --git a/src/commands/stored_playlists/listplaylistinfo.rs b/src/commands/stored_playlists/listplaylistinfo.rs index 3c9ea6eb..88dd60fc 100644 --- a/src/commands/stored_playlists/listplaylistinfo.rs +++ b/src/commands/stored_playlists/listplaylistinfo.rs @@ -33,7 +33,7 @@ impl Command for ListPlaylistInfo { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/stored_playlists/listplaylists.rs b/src/commands/stored_playlists/listplaylists.rs index 4593a130..94b171c5 100644 --- a/src/commands/stored_playlists/listplaylists.rs +++ b/src/commands/stored_playlists/listplaylists.rs @@ -15,7 +15,7 @@ impl Command for ListPlaylists { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } } diff --git a/src/commands/stored_playlists/load.rs b/src/commands/stored_playlists/load.rs index f5dac561..eda89a74 100644 --- a/src/commands/stored_playlists/load.rs +++ b/src/commands/stored_playlists/load.rs @@ -39,7 +39,7 @@ impl Command for Load { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/stored_playlists/playlistadd.rs b/src/commands/stored_playlists/playlistadd.rs index a979317e..d5f6ff48 100644 --- a/src/commands/stored_playlists/playlistadd.rs +++ b/src/commands/stored_playlists/playlistadd.rs @@ -35,7 +35,7 @@ impl Command for PlaylistAdd { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/stored_playlists/playlistclear.rs b/src/commands/stored_playlists/playlistclear.rs index d4cd1a89..95137f6f 100644 --- a/src/commands/stored_playlists/playlistclear.rs +++ b/src/commands/stored_playlists/playlistclear.rs @@ -22,7 +22,7 @@ impl Command for PlaylistClear { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/stored_playlists/playlistdelete.rs b/src/commands/stored_playlists/playlistdelete.rs index 0a953345..fa7b4ec9 100644 --- a/src/commands/stored_playlists/playlistdelete.rs +++ b/src/commands/stored_playlists/playlistdelete.rs @@ -28,7 +28,7 @@ impl Command for PlaylistDelete { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/stored_playlists/playlistlength.rs b/src/commands/stored_playlists/playlistlength.rs index 535c31cb..a66dcdc2 100644 --- a/src/commands/stored_playlists/playlistlength.rs +++ b/src/commands/stored_playlists/playlistlength.rs @@ -29,7 +29,7 @@ impl Command for PlaylistLength { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { let parts: HashMap<_, _> = parts.into(); let songs = get_and_parse_property!(parts, "songs", Text); diff --git a/src/commands/stored_playlists/playlistmove.rs b/src/commands/stored_playlists/playlistmove.rs index 1d806e39..8319bff0 100644 --- a/src/commands/stored_playlists/playlistmove.rs +++ b/src/commands/stored_playlists/playlistmove.rs @@ -39,7 +39,7 @@ impl Command for PlaylistMove { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/stored_playlists/rename.rs b/src/commands/stored_playlists/rename.rs index 0ed7951d..5d3a3713 100644 --- a/src/commands/stored_playlists/rename.rs +++ b/src/commands/stored_playlists/rename.rs @@ -27,7 +27,7 @@ impl Command for Rename { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/stored_playlists/rm.rs b/src/commands/stored_playlists/rm.rs index 4ab25799..621b25fa 100644 --- a/src/commands/stored_playlists/rm.rs +++ b/src/commands/stored_playlists/rm.rs @@ -22,7 +22,7 @@ impl Command for Rm { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/stored_playlists/save.rs b/src/commands/stored_playlists/save.rs index b10ac415..28dc86a0 100644 --- a/src/commands/stored_playlists/save.rs +++ b/src/commands/stored_playlists/save.rs @@ -30,7 +30,7 @@ impl Command for Save { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { debug_assert!(parts.is_empty()); Ok(()) } diff --git a/src/commands/stored_playlists/searchplaylist.rs b/src/commands/stored_playlists/searchplaylist.rs index 0d8c898a..d1023821 100644 --- a/src/commands/stored_playlists/searchplaylist.rs +++ b/src/commands/stored_playlists/searchplaylist.rs @@ -36,7 +36,7 @@ impl Command for SearchPlaylist { fn parse_response( parts: ResponseAttributes<'_>, - ) -> Result { + ) -> Result> { unimplemented!() } }