Fix some warnings

This commit is contained in:
Simon Sapin 2018-12-26 10:58:50 +01:00
parent be69f9c3e6
commit be2218a134
7 changed files with 10 additions and 10 deletions

View file

@ -69,7 +69,7 @@ where
digits[0] = (x % 10) as u8 + b'0';
let s = str::from_utf8(&digits[..]).unwrap();
fmt.write_str(s.trim_right_matches('0'))
fmt.write_str(s.trim_end_matches('0'))
},
}
}