Skip to content

Commit cef8f9f

Browse files
authored
Remove another clone in recaster (#7850)
1 parent 00b4300 commit cef8f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kcl-lib/src/unparser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ impl Node<PipeExpression> {
794794
.map(|(index, statement)| {
795795
let indentation = options.get_indentation(indentation_level + 1);
796796
let mut s = statement.recast(options, indentation_level + 1, ExprContext::Pipe);
797-
let non_code_meta = self.non_code_meta.clone();
797+
let non_code_meta = &self.non_code_meta;
798798
if let Some(non_code_meta_value) = non_code_meta.non_code_nodes.get(&index) {
799799
for val in non_code_meta_value {
800800
let formatted = if val.end == self.end {

0 commit comments

Comments
 (0)