From ee261359bd933f28d3d163bbf7fa435ed4bf0747 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 30 Jan 2023 10:11:40 +0100 Subject: [PATCH] ptx: fix warning from unnecessary_join lint --- src/uu/ptx/src/ptx.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/uu/ptx/src/ptx.rs b/src/uu/ptx/src/ptx.rs index 3790c4e11..9716aaf30 100644 --- a/src/uu/ptx/src/ptx.rs +++ b/src/uu/ptx/src/ptx.rs @@ -174,8 +174,7 @@ impl WordFilter { } else { c.to_string() }) - .collect::>() - .join("") + .collect::() ) } else if config.gnu_ext { "\\w+".to_owned()