Skip to content

Commit

Permalink
Fix build after rebase of master
Browse files Browse the repository at this point in the history
  • Loading branch information
ymadzhunkov committed Aug 29, 2023
1 parent 2ef48e2 commit 05b5208
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/noirc_frontend/src/ast/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::fmt::Display;
use crate::token::{Attribute, Token};
use crate::{
Distinctness, Ident, Path, Pattern, Recoverable, Statement, TraitConstraint, UnresolvedType,
Visibility,
UnresolvedTypeData, Visibility,
};
use acvm::FieldElement;
use iter_extended::vecmap;
Expand Down Expand Up @@ -689,10 +689,10 @@ impl Display for FunctionDefinition {
}

impl FunctionReturnType {
pub fn get_type(&self) -> &UnresolvedType {
pub fn get_type(&self) -> &UnresolvedTypeData {
match self {
FunctionReturnType::Default(_span) => &UnresolvedType::Unit,
FunctionReturnType::Ty(typ, _span) => typ,
FunctionReturnType::Default(_span) => &UnresolvedTypeData::Unit,
FunctionReturnType::Ty(typ, _span) => &typ.typ,
}
}
}
Expand Down

0 comments on commit 05b5208

Please sign in to comment.