chore(lint): clippy rules needless_collect (#2522)

This commit is contained in:
Tunglies
2026-04-15 03:00:03 -07:00
committed by GitHub
parent 1bda5ed636
commit f57dd5a3c7
5 changed files with 19 additions and 11 deletions
+1 -2
View File
@@ -293,8 +293,7 @@ where
if !self.args.auth_token.is_empty() {
// Split auth_token string to check if the authentication type is included
let tokens: Vec<&str> = self.args.auth_token.split_whitespace().collect();
match tokens.len() {
match self.args.auth_token.split_whitespace().count() {
2 => {
// Already include authentication type and token, such as "Bearer token123"
req_builder = req_builder.header("Authorization", &self.args.auth_token);