Skip to content

Commit

Permalink
remove clones
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs committed Apr 10, 2024
1 parent 28fa7c5 commit effaf8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl MultipleSystemMethods {
.iter()
.map(|stmt| stmt.create_location())
.collect(),
method_type: method_type.clone(),
method_type: method_type,
}
.into()
}
Expand Down
2 changes: 1 addition & 1 deletion kybra/compiler/kybra_generate/src/canister_method/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl PyAst {
.iter()
.filter(|stmt_kind| {
SourceMapped::new(*stmt_kind, program.source_map.clone())
.is_canister_method_type(method_type.clone())
.is_canister_method_type(method_type)
})
.map(|stmt_kind| SourceMapped::new(stmt_kind, program.source_map.clone()))
.collect(),
Expand Down

0 comments on commit effaf8b

Please sign in to comment.