From b6392636b6f5fa46f789e6d806f1da353f9619ff Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Mon, 2 Dec 2024 11:08:28 -0500 Subject: [PATCH] cargo fmt --- pallets/subtensor/src/epoch/math.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pallets/subtensor/src/epoch/math.rs b/pallets/subtensor/src/epoch/math.rs index c8a3040ff..027966f92 100644 --- a/pallets/subtensor/src/epoch/math.rs +++ b/pallets/subtensor/src/epoch/math.rs @@ -113,8 +113,7 @@ pub fn vec_max_upscale_to_u16(vec: &[I32F32]) -> Vec { }) .collect(); } - vec - .iter() + vec.iter() .map(|e: &I32F32| { e.saturating_mul(u16_max) .saturating_div(*val) @@ -125,8 +124,7 @@ pub fn vec_max_upscale_to_u16(vec: &[I32F32]) -> Vec { } None => { let sum: I32F32 = vec.iter().sum(); - vec - .iter() + vec.iter() .map(|e: &I32F32| { e.saturating_mul(u16_max) .saturating_div(sum)