From c6f6c87780898d8add9a4e8cf864c088c76216a6 Mon Sep 17 00:00:00 2001 From: Joining7943 <111500881+Joining7943@users.noreply.github.com> Date: Sun, 23 Apr 2023 23:11:01 +0200 Subject: [PATCH] tests/tail: Change static global variables to const --- tests/by-util/test_tail.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/by-util/test_tail.rs b/tests/by-util/test_tail.rs index f3e55e434..7a812dc74 100644 --- a/tests/by-util/test_tail.rs +++ b/tests/by-util/test_tail.rs @@ -36,15 +36,15 @@ use tail::chunks::BUFFER_SIZE as CHUNK_BUFFER_SIZE; ))] use tail::text; -static FOOBAR_TXT: &str = "foobar.txt"; -static FOOBAR_2_TXT: &str = "foobar2.txt"; -static FOOBAR_WITH_NULL_TXT: &str = "foobar_with_null.txt"; +const FOOBAR_TXT: &str = "foobar.txt"; +const FOOBAR_2_TXT: &str = "foobar2.txt"; +const FOOBAR_WITH_NULL_TXT: &str = "foobar_with_null.txt"; #[allow(dead_code)] -static FOLLOW_NAME_TXT: &str = "follow_name.txt"; +const FOLLOW_NAME_TXT: &str = "follow_name.txt"; #[allow(dead_code)] -static FOLLOW_NAME_SHORT_EXP: &str = "follow_name_short.expected"; +const FOLLOW_NAME_SHORT_EXP: &str = "follow_name_short.expected"; #[allow(dead_code)] -static FOLLOW_NAME_EXP: &str = "follow_name.expected"; +const FOLLOW_NAME_EXP: &str = "follow_name.expected"; #[cfg(not(windows))] const DEFAULT_SLEEP_INTERVAL_MILLIS: u64 = 1000;