Skip to content

Commit

Permalink
suppress spurious cargo clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rainiwu committed Jan 26, 2024
1 parent 5c532ec commit fb91f13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dfdx-core/src/data/collate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ impl<A, B> Collate for Vec<(A, B)> {
impl<'a, A, B> Collate for Vec<&'a (A, B)> {
type Collated = (Vec<&'a A>, Vec<&'a B>);
fn collated(self) -> Self::Collated {
#[allow(clippy::map_identity)]
self.into_iter().map(|(a, b)| (a, b)).unzip()
}
}
Expand Down

0 comments on commit fb91f13

Please sign in to comment.