From 9f307309672091c7f197fa88c2c9eafc18c0748f Mon Sep 17 00:00:00 2001 From: Ary Borenszweig Date: Fri, 26 Jul 2024 18:48:11 -0300 Subject: [PATCH] No need for turbofish in named_type --- compiler/noirc_frontend/src/parser/parser/types.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/noirc_frontend/src/parser/parser/types.rs b/compiler/noirc_frontend/src/parser/parser/types.rs index 3e580a1b317..fca29bf1e7a 100644 --- a/compiler/noirc_frontend/src/parser/parser/types.rs +++ b/compiler/noirc_frontend/src/parser/parser/types.rs @@ -1,4 +1,4 @@ -use super::path::{path, path_no_turbofish}; +use super::path::path_no_turbofish; use super::primitives::token_kind; use super::{ expression_with_precedence, keyword, nothing, parenthesized, NoirParser, ParserError, @@ -181,9 +181,9 @@ pub(super) fn int_type() -> impl NoirParser { pub(super) fn named_type<'a>( type_parser: impl NoirParser + 'a, ) -> impl NoirParser + 'a { - path(type_parser.clone()).then(generic_type_args(type_parser)).map_with_span( - |(path, args), span| UnresolvedTypeData::Named(path, args, false).with_span(span), - ) + path_no_turbofish().then(generic_type_args(type_parser)).map_with_span(|(path, args), span| { + UnresolvedTypeData::Named(path, args, false).with_span(span) + }) } pub(super) fn named_trait<'a>(