refactor: Optimize code based on cargo clippy suggestions

Signed-off-by: one230six <723682061@qq.com>

refactor: Optimize code based on cargo clippy suggestions

Signed-off-by: one230six <723682061@qq.com>
This commit is contained in:
one230six authored and David Peter committed 2024-03-14 08:46:35 +01:00
1 parent 865b496098
commit c0921351e7
3 files changed
+11 -11

No files matched your search

-2
View File
@@ -1,5 +1,3 @@
use std::iter::Iterator;
/// A max function for f64's without NaNs
pub fn max(vals: &[f64]) -> f64 {
*vals