Skip to content

Commit 7cf73ee

Browse files
committed
clippy and fmt issues
1 parent 0fb902c commit 7cf73ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/src/snapshot/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,17 +236,17 @@ pub(super) async fn run(filter_regex: Option<&regex::Regex>) -> Result<()> {
236236
} else if let Some(txt) = cmd.strip_prefix("echo ") {
237237
let mut words = txt.trim().split(" ");
238238
let mut width = 0;
239-
while let Some(word) = words.next() {
239+
for word in words {
240240
let _ = write!(&mut snapshot, "{} ", word);
241241
width += word.len() + 1;
242242

243243
if width >= 80 {
244244
width = 0;
245-
let _ = writeln!(&mut snapshot, "");
245+
let _ = writeln!(&mut snapshot);
246246
}
247247
}
248248

249-
let _ = writeln!(&mut snapshot, "");
249+
let _ = writeln!(&mut snapshot);
250250

251251
continue;
252252
} else {

0 commit comments

Comments
 (0)