From 588fd14fb631ddd6797f6d84cc43f7893e71af19 Mon Sep 17 00:00:00 2001 From: OpenByte Date: Thu, 14 Mar 2024 15:04:24 +0100 Subject: [PATCH] Fix clippy warning --- burnt-sushi/src/logger/file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/burnt-sushi/src/logger/file.rs b/burnt-sushi/src/logger/file.rs index d78dee5..1444e82 100644 --- a/burnt-sushi/src/logger/file.rs +++ b/burnt-sushi/src/logger/file.rs @@ -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);