Skip to content

Commit

Permalink
Reduce clone
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Oct 26, 2023
1 parent c3da0c2 commit e690949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ pub fn class_to_class_def(
match expr {
Expr::Ident(ident) => Some(ident.sym.to_string()),
Expr::Member(member_expr) => {
let prop = member_expr.prop.as_ident()?.sym.to_string();
let prop = &member_expr.prop.as_ident()?.sym;
let mut string_path = walk_class_extends(&member_expr.obj)?;

string_path.push('.');
Expand Down

0 comments on commit e690949

Please sign in to comment.