mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
don't use unneeded closure
Co-authored-by: Alphyr <47725341+a1phyr@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
/// );
|
||||
|
||||
Reference in New Issue
Block a user