Skip to content

Commit 8a8221a

Browse files
committed
move instead of cloning
1 parent 353912b commit 8a8221a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/monomorph_pass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ impl MonomorphPass {
310310
self.process_function(&mut specialized, decls)?;
311311

312312
// Add to specialized decls
313-
self.out_decls.push(Decl::Func(specialized.clone()));
313+
self.out_decls.push(Decl::Func(specialized));
314314

315315
self.recursion_detector.end_instantiation();
316316

0 commit comments

Comments
 (0)