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()