From fd17727f7d024d19c889e164910727460c0bf063 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Wed, 5 Apr 2023 12:19:20 -0700 Subject: [PATCH] chore: fix `clippy::needless_borrow` lint in journald tests (#2547) --- tracing-journald/tests/journal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracing-journald/tests/journal.rs b/tracing-journald/tests/journal.rs index c2e07cc9ca..7cbcd24d15 100644 --- a/tracing-journald/tests/journal.rs +++ b/tracing-journald/tests/journal.rs @@ -122,7 +122,7 @@ fn read_from_journal(test_name: &str) -> Vec> { let stdout = String::from_utf8( Command::new("journalctl") // We pass --all to circumvent journalctl's default limit of 4096 bytes for field values - .args(&["--user", "--output=json", "--all"]) + .args(["--user", "--output=json", "--all"]) // Filter by the PID of the current test process .arg(format!("_PID={}", std::process::id())) .arg(format!("TEST_NAME={}", test_name))