Skip to content

Commit

Permalink
fix: with_span now takes an argument by value
Browse files Browse the repository at this point in the history
Co-authored-by: jfecher <[email protected]>
  • Loading branch information
alexvitkov and jfecher authored Aug 25, 2023
1 parent 0972151 commit acf9814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/noirc_frontend/src/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ impl UnresolvedTypeData {
}
}

pub fn with_span(&self, span: Span) -> UnresolvedType {
UnresolvedType { typ: self.clone(), span: Some(span) }
pub fn with_span(self, span: Span) -> UnresolvedType {
UnresolvedType { typ: self, span: Some(span) }
}
}

Expand Down

0 comments on commit acf9814

Please sign in to comment.