Skip to content

Commit

Permalink
Remove an unneeded .to_string() in tokenize_files_to_codes_mapping (#…
Browse files Browse the repository at this point in the history
…1676)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
andersk committed Jan 6, 2023
1 parent 81b211d commit 2e3787a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake8_to_ruff/src/parser.rs
Expand Up @@ -127,7 +127,7 @@ fn tokenize_files_to_codes_mapping(value: &str) -> Vec<Token> {
if mat.start() == 0 {
tokens.push(Token {
token_name,
src: mat.as_str().to_string().trim().to_string(),
src: mat.as_str().trim().to_string(),
});
i += mat.end();
break;
Expand Down

0 comments on commit 2e3787a

Please sign in to comment.