We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MapInto
Debug/Clone
1 parent 3918da2 commit 6b931e5Copy full SHA for 6b931e5
src/adaptors/map.rs
@@ -108,9 +108,19 @@ impl<T: Into<U>, U> MapSpecialCaseFn<T> for MapSpecialCaseFnInto<U> {
108
}
109
110
111
-#[derive(Clone, Debug)]
112
pub struct MapSpecialCaseFnInto<U>(PhantomData<U>);
113
+impl<U> std::fmt::Debug for MapSpecialCaseFnInto<U> {
114
+ debug_fmt_fields!(MapSpecialCaseFnInto, 0);
115
+}
116
+
117
+impl<U> Clone for MapSpecialCaseFnInto<U> {
118
+ #[inline]
119
+ fn clone(&self) -> Self {
120
+ Self(PhantomData)
121
+ }
122
123
124
/// Create a new [`MapInto`] iterator.
125
pub fn map_into<I, R>(iter: I) -> MapInto<I, R> {
126
MapSpecialCase {
0 commit comments