Skip to content

Commit f525a90

Browse files
committed
clippy gotta clip
1 parent 0912fbb commit f525a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

turbopack/crates/turbopack-ecmascript/src/references/replace_parent_with_child.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl ReplaceParentWithChild {
2929

3030
pub fn code_generation(&self) -> Result<CodeGeneration> {
3131
let parent_path = &self.path[0..(self.path.len() - 1)];
32-
let to_replace_with = self.path.last().unwrap().clone();
32+
let to_replace_with = *self.path.last().unwrap();
3333
let visitor = create_visitor!(parent_path, visit_mut_expr, |parent_expr: &mut Expr| {
3434
let child = match parent_expr {
3535
Expr::Bin(BinExpr {

0 commit comments

Comments
 (0)