Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
FreerGit committed Sep 7, 2024
1 parent c211a41 commit 52d75ee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ macro_rules! format_log {
#[cfg(test)]
mod tests {
use super::*;
use std::{fs, io::Read, time::Instant};
use std::fs;

fn setup() {
fs::File::options()
Expand Down Expand Up @@ -268,10 +268,8 @@ mod tests {

logger.shutdown();

let mut i = 0;
for line in fs::read_to_string("log.txt").unwrap().lines() {
for (i, line) in fs::read_to_string("log.txt").unwrap().lines().enumerate() {
assert_eq!(line, format!("{}", i));
i += 1;
}
teardown();
}
Expand Down

0 comments on commit 52d75ee

Please sign in to comment.