We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcacf3c commit cadb793Copy full SHA for cadb793
1 file changed
range/rust/src/lib.rs
@@ -18,7 +18,7 @@ impl fmt::Display for RangeError {
18
impl Error for RangeError {}
19
20
fn scale_frequencies(freq: &mut [u32]) {
21
- let mut total: u64 = freq.iter().map(|&f| f as u64).sum();
+ let total: u64 = freq.iter().map(|&f| f as u64).sum();
22
if total == 0 {
23
for f in freq.iter_mut() {
24
*f = 1;
0 commit comments