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 {
c.to_string()
})
.collect::<Vec<String>>()
.join("")
.collect::<String>()
)
} else if config.gnu_ext {
"\\w+".to_owned()