ptx: fix warning from unnecessary_join lint

This commit is contained in:
Daniel Hofstetter 2023-01-30 10:11:40 +01:00
parent e6af566c2a
commit ee261359bd

View file

@ -174,8 +174,7 @@ impl WordFilter {
} else { } else {
c.to_string() c.to_string()
}) })
.collect::<Vec<String>>() .collect::<String>()
.join("")
) )
} else if config.gnu_ext { } else if config.gnu_ext {
"\\w+".to_owned() "\\w+".to_owned()