don't use unneeded closure

Co-authored-by: Alphyr <47725341+a1phyr@users.noreply.github.com>
This commit is contained in:
Smittyvb
2021-05-26 20:38:50 -04:00
committed by GitHub
parent 7146a05a43
commit b00f6fc8a1
+1 -1
View File
@@ -2646,7 +2646,7 @@ fn max(self) -> Option<Self::Item>
/// assert_eq!(
/// vec![2.4, f32::NAN, 1.3]
/// .into_iter()
/// .reduce(|a, b| f32::min(a, b))
/// .reduce(f32::min)
/// .unwrap(),
/// 1.3
/// );