fix warning
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 13 Apr 2025 16:09:30 +0000 (09:09 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 13 Apr 2025 16:09:30 +0000 (09:09 -0700)
rust/pspp/src/lex/segment/test.rs

index be13cdd0745e7467a56d73cf7984c2810ba25676..a384e5c4ae2592ed5205f38b14d7c7d0cc05ccd0 100644 (file)
@@ -1390,7 +1390,7 @@ fn test_do_repeat_overflow() {
         (Segment::Newline, "\n"),
     ];
     for (i, line) in do_repeat.iter().enumerate().take(N).skip(1) {
-        expect_output.push((Segment::DoRepeatCommand, do_repeat[i].trim_end()));
+        expect_output.push((Segment::DoRepeatCommand, line.trim_end()));
         if i >= 255 {
             expect_output.push((Segment::DoRepeatOverflow, ""));
         }