Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenByteDev committed Mar 14, 2024
1 parent 981b2a8 commit 588fd14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion burnt-sushi/src/logger/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl FileLog {
let mut truncated_contents = String::new();
for (index, _) in contents.match_indices('\n') {
let succeeding = &contents[(index + 1)..];
if succeeding.len() > 1 * 1024 * 1024 /* 1mb */ {
if succeeding.len() > 1024 * 1024 /* 1mb */ {
continue;
}
truncated_contents.push_str(succeeding);
Expand Down

0 comments on commit 588fd14

Please sign in to comment.