@@ -836,11 +836,10 @@ impl YouTubeListMapper<YouTubeItem> {
836836 self . items . push ( mapped) ;
837837 }
838838 }
839- YouTubeListItem :: ContinuationItemRenderer ( r) => {
840- if self . ctoken . is_none ( ) {
841- self . ctoken = r. continuation_endpoint . into_token ( ) ;
842- }
839+ YouTubeListItem :: ContinuationItemRenderer ( r) if self . ctoken . is_none ( ) => {
840+ self . ctoken = r. continuation_endpoint . into_token ( ) ;
843841 }
842+ YouTubeListItem :: ContinuationItemRenderer ( _) => { }
844843 YouTubeListItem :: ShowingResultsForRenderer { corrected_query } => {
845844 self . corrected_query = Some ( corrected_query) ;
846845 }
@@ -861,7 +860,7 @@ impl YouTubeListMapper<YouTubeItem> {
861860 }
862861
863862 pub ( crate ) fn map_response_node ( & mut self , node : & JsonNode < ' _ > ) {
864- let ( items, mut warnings) = node. deserialize_items_lossy :: < YouTubeListItem > ( ) ;
863+ let ( items, warnings) = node. deserialize_items_lossy :: < YouTubeListItem > ( ) ;
865864 self . map_response ( MapResult {
866865 c : items,
867866 warnings,
@@ -894,11 +893,10 @@ impl YouTubeListMapper<VideoItem> {
894893 self . items . push ( mapped) ;
895894 }
896895 }
897- YouTubeListItem :: ContinuationItemRenderer ( r) => {
898- if self . ctoken . is_none ( ) {
899- self . ctoken = r. continuation_endpoint . into_token ( ) ;
900- }
896+ YouTubeListItem :: ContinuationItemRenderer ( r) if self . ctoken . is_none ( ) => {
897+ self . ctoken = r. continuation_endpoint . into_token ( ) ;
901898 }
899+ YouTubeListItem :: ContinuationItemRenderer ( _) => { }
902900 YouTubeListItem :: ShowingResultsForRenderer { corrected_query } => {
903901 self . corrected_query = Some ( corrected_query) ;
904902 }
@@ -919,7 +917,7 @@ impl YouTubeListMapper<VideoItem> {
919917 }
920918
921919 pub ( crate ) fn map_response_node ( & mut self , node : & JsonNode < ' _ > ) {
922- let ( items, mut warnings) = node. deserialize_items_lossy :: < YouTubeListItem > ( ) ;
920+ let ( items, warnings) = node. deserialize_items_lossy :: < YouTubeListItem > ( ) ;
923921 self . map_response ( MapResult {
924922 c : items,
925923 warnings,
@@ -956,11 +954,10 @@ impl YouTubeListMapper<PlaylistItem> {
956954 self . items . push ( mapped) ;
957955 }
958956 }
959- YouTubeListItem :: ContinuationItemRenderer ( r) => {
960- if self . ctoken . is_none ( ) {
961- self . ctoken = r. continuation_endpoint . into_token ( ) ;
962- }
957+ YouTubeListItem :: ContinuationItemRenderer ( r) if self . ctoken . is_none ( ) => {
958+ self . ctoken = r. continuation_endpoint . into_token ( ) ;
963959 }
960+ YouTubeListItem :: ContinuationItemRenderer ( _) => { }
964961 YouTubeListItem :: ShowingResultsForRenderer { corrected_query } => {
965962 self . corrected_query = Some ( corrected_query) ;
966963 }
@@ -981,7 +978,7 @@ impl YouTubeListMapper<PlaylistItem> {
981978 }
982979
983980 pub ( crate ) fn map_response_node ( & mut self , node : & JsonNode < ' _ > ) {
984- let ( items, mut warnings) = node. deserialize_items_lossy :: < YouTubeListItem > ( ) ;
981+ let ( items, warnings) = node. deserialize_items_lossy :: < YouTubeListItem > ( ) ;
985982 self . map_response ( MapResult {
986983 c : items,
987984 warnings,
0 commit comments