From 5f3b1394570e7a3e4b3622030cc9a673aad99604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 8 Apr 2026 00:23:15 +0200 Subject: [PATCH] Drop redundant trim() before split_whitespace() split_whitespace already skips leading and trailing whitespace, so the trim() call is redundant and trips clippy::trim_split_whitespace. --- tests/integration.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/integration.rs b/tests/integration.rs index d2becce..d5c6435 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -40,8 +40,7 @@ impl std::ops::Deref for ConfigFile { } fn read_sid_from_stat(stat: &str) -> u32 { - stat.trim() - .split_whitespace() + stat.split_whitespace() .nth(5) .expect("missing field 6 in /proc/self/stat") .parse()