Skip to content

Commit 9bc2dd8

Browse files
committed
Clippy lint: replace unnecessary conversion with rebinding
1 parent a96de9c commit 9bc2dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl VisitMut for TransformVisitor {
125125
variable_hash_name
126126
};
127127

128-
let mut variable_name = String::from(variable_hash_name);
128+
let mut variable_name = variable_hash_name;
129129

130130
if self.config.display_name {
131131
if self.current_var_declarator.is_some() {

0 commit comments

Comments
 (0)