Skip to content

Commit f21a5ea

Browse files
committed
cargo fmt
1 parent 7a5072a commit f21a5ea

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pallets/subtensor/src/epoch/math.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ pub fn vec_max_upscale_to_u16(vec: &[I32F32]) -> Vec<u16> {
113113
})
114114
.collect();
115115
}
116-
vec
117-
.iter()
116+
vec.iter()
118117
.map(|e: &I32F32| {
119118
e.saturating_mul(u16_max)
120119
.saturating_div(*val)
@@ -125,8 +124,7 @@ pub fn vec_max_upscale_to_u16(vec: &[I32F32]) -> Vec<u16> {
125124
}
126125
None => {
127126
let sum: I32F32 = vec.iter().sum();
128-
vec
129-
.iter()
127+
vec.iter()
130128
.map(|e: &I32F32| {
131129
e.saturating_mul(u16_max)
132130
.saturating_div(sum)

0 commit comments

Comments
 (0)