Skip to content

Commit

Permalink
Remove initializer.clone() from sema/variables.rs
Browse files Browse the repository at this point in the history
Signed-off-by: LucasSte <[email protected]>
  • Loading branch information
LucasSte committed Jul 9, 2021
1 parent 0e14dac commit d8c83ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sema/variables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ pub fn var_decl(
visibility: visibility.clone(),
ty: ty.clone(),
constant: is_constant,
initializer: initializer.clone(),
read: false,
assigned: initializer.is_some(),
initializer,
read: false,
};

let pos = if let Some(contract_no) = contract_no {
Expand Down

0 comments on commit d8c83ba

Please sign in to comment.