fix: use AsRef generics for pagination
This commit is contained in:
parent
85cac83070
commit
94b55711cb
4 changed files with 68 additions and 60 deletions
|
|
@ -1164,6 +1164,12 @@ impl RustyPipeQuery {
|
|||
}
|
||||
}
|
||||
|
||||
impl AsRef<RustyPipeQuery> for RustyPipeQuery {
|
||||
fn as_ref(&self) -> &RustyPipeQuery {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
/// Implement this for YouTube API response structs that need to be mapped to
|
||||
/// RustyPipe models.
|
||||
trait MapResponse<T> {
|
||||
|
|
|
|||
Reference in a new issue