From 177c714172bb41bec4c0dd69b870ba0b9bdf1647 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Fri, 31 Jan 2020 22:13:02 -0500 Subject: [PATCH] Fix rust-lang/rust#66145 warnings --- youmubot/src/commands/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youmubot/src/commands/args.rs b/youmubot/src/commands/args.rs index 37a5843..d2e39b0 100644 --- a/youmubot/src/commands/args.rs +++ b/youmubot/src/commands/args.rs @@ -101,7 +101,7 @@ mod duration { ]; let count = f.precision().unwrap_or(formats.len()); 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 { write!( f,