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:43 -04:00 committed by GitHub
parent e7a3ada210
commit 7146a05a43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2608,7 +2608,7 @@ pub trait Iterator {
/// assert_eq!(
/// vec![2.4, f32::NAN, 1.3]
/// .into_iter()
/// .reduce(|a, b| f32::max(a, b))
/// .reduce(f32::max)
/// .unwrap(),
/// 2.4
/// );