From f1f9f0df1a6ad7a084a9b5b923cd3421148b69cf Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Tue, 28 Jun 2022 12:37:19 -0500 Subject: [PATCH] pass clippy --- packages/rsx/src/ifmt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rsx/src/ifmt.rs b/packages/rsx/src/ifmt.rs index 58d52c7d1..7972a5f86 100644 --- a/packages/rsx/src/ifmt.rs +++ b/packages/rsx/src/ifmt.rs @@ -94,7 +94,7 @@ impl FromStr for IfmtInput { while let Some(c) = chars.next() { if c == ':' { let mut current_format_args = String::new(); - while let Some(c) = chars.next() { + for c in chars.by_ref() { if c == '}' { segments.push(Segment::Formatted { format_args: current_format_args,