From 05b5208eba3f947945ca5b393da92d3a093ca97d Mon Sep 17 00:00:00 2001 From: Yordan Madzhunkov Date: Tue, 29 Aug 2023 10:29:09 +0300 Subject: [PATCH] Fix build after rebase of master --- crates/noirc_frontend/src/ast/expression.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/noirc_frontend/src/ast/expression.rs b/crates/noirc_frontend/src/ast/expression.rs index f6e085cc95b..6c29c89051f 100644 --- a/crates/noirc_frontend/src/ast/expression.rs +++ b/crates/noirc_frontend/src/ast/expression.rs @@ -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; @@ -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, } } }