mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-19 16:58:55 +00:00
Fix rust-lang/rust#66145 warnings
This commit is contained in:
parent
52a9ea134f
commit
177c714172
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ mod duration {
|
||||||
];
|
];
|
||||||
let count = f.precision().unwrap_or(formats.len());
|
let count = f.precision().unwrap_or(formats.len());
|
||||||
let mut first = true;
|
let mut first = true;
|
||||||
for (val, counter) in formats.into_iter().skip_while(|(a, _)| *a == 0).take(count) {
|
for (val, counter) in formats.iter().skip_while(|(a, _)| *a == 0).take(count) {
|
||||||
if *val > 0 {
|
if *val > 0 {
|
||||||
write!(
|
write!(
|
||||||
f,
|
f,
|
||||||
|
|
Loading…
Add table
Reference in a new issue