소스 검색

pass clippy

Evan Almloff 3 년 전
부모
커밋
f1f9f0df1a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/rsx/src/ifmt.rs

+ 1 - 1
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,