@@ -1617,58 +1617,6 @@ impl Default for RawValues<'_> {
16171617// commit: be5e1fa3c26e351761b33010ddbdaf5f05dbcc33
16181618// license: MIT - Copyright (c) 2015 The Rust Project Developers
16191619
1620- #[ derive( Clone , Debug ) ]
1621- #[ deprecated( since = "4.1.0" , note = "Use Occurrences instead" ) ]
1622- pub ( crate ) struct GroupedValues < ' a > {
1623- #[ allow( clippy:: type_complexity) ]
1624- iter : Map < Iter < ' a , Vec < AnyValue > > , fn ( & Vec < AnyValue > ) -> Vec < & str > > ,
1625- len : usize ,
1626- }
1627-
1628- #[ allow( deprecated) ]
1629- impl < ' a > Iterator for GroupedValues < ' a > {
1630- type Item = Vec < & ' a str > ;
1631-
1632- fn next ( & mut self ) -> Option < Self :: Item > {
1633- if let Some ( next) = self . iter . next ( ) {
1634- self . len -= 1 ;
1635- Some ( next)
1636- } else {
1637- None
1638- }
1639- }
1640- fn size_hint ( & self ) -> ( usize , Option < usize > ) {
1641- ( self . len , Some ( self . len ) )
1642- }
1643- }
1644-
1645- #[ allow( deprecated) ]
1646- impl DoubleEndedIterator for GroupedValues < ' _ > {
1647- fn next_back ( & mut self ) -> Option < Self :: Item > {
1648- if let Some ( next) = self . iter . next_back ( ) {
1649- self . len -= 1 ;
1650- Some ( next)
1651- } else {
1652- None
1653- }
1654- }
1655- }
1656-
1657- #[ allow( deprecated) ]
1658- impl ExactSizeIterator for GroupedValues < ' _ > { }
1659-
1660- /// Creates an empty iterator. Used for `unwrap_or_default()`.
1661- #[ allow( deprecated) ]
1662- impl Default for GroupedValues < ' _ > {
1663- fn default ( ) -> Self {
1664- static EMPTY : [ Vec < AnyValue > ; 0 ] = [ ] ;
1665- GroupedValues {
1666- iter : EMPTY [ ..] . iter ( ) . map ( |_| unreachable ! ( ) ) ,
1667- len : 0 ,
1668- }
1669- }
1670- }
1671-
16721620#[ derive( Clone , Debug ) ]
16731621pub struct Occurrences < T > {
16741622 #[ allow( clippy:: type_complexity) ]
0 commit comments