Skip to content

Commit d07fbab

Browse files
committed
fix clippy: inefficient_to_string
1 parent c1e8b7c commit d07fbab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn create_patterns_filters(arg: &str) -> Vec<PatternFilter> {
8181
let pattern = if exclude {
8282
pattern[1..].to_string()
8383
} else {
84-
pattern.to_string()
84+
(*pattern).to_string()
8585
};
8686

8787
patterns_filters.push(PatternFilter {

0 commit comments

Comments
 (0)