commands: fix clippy warnings about confusing elided lifetimes

This commit is contained in:
2025-10-12 22:59:50 +09:00
parent 6d9e9cd468
commit 29f4e0519e
130 changed files with 131 additions and 131 deletions

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(())
}

View File

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