Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sam0x17 committed Dec 2, 2024
1 parent 1db2eb6 commit b639263
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pallets/subtensor/src/epoch/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ pub fn vec_max_upscale_to_u16(vec: &[I32F32]) -> Vec<u16> {
})
.collect();
}
vec
.iter()
vec.iter()
.map(|e: &I32F32| {
e.saturating_mul(u16_max)
.saturating_div(*val)
Expand All @@ -125,8 +124,7 @@ pub fn vec_max_upscale_to_u16(vec: &[I32F32]) -> Vec<u16> {
}
None => {
let sum: I32F32 = vec.iter().sum();
vec
.iter()
vec.iter()
.map(|e: &I32F32| {
e.saturating_mul(u16_max)
.saturating_div(sum)
Expand Down

0 comments on commit b639263

Please sign in to comment.