Skip to content

Commit

Permalink
No need for turbofish in named_type
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Jul 26, 2024
1 parent 8d212a7 commit 9f30730
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/noirc_frontend/src/parser/parser/types.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -181,9 +181,9 @@ pub(super) fn int_type() -> impl NoirParser<UnresolvedType> {
pub(super) fn named_type<'a>(
type_parser: impl NoirParser<UnresolvedType> + 'a,
) -> impl NoirParser<UnresolvedType> + '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>(
Expand Down

0 comments on commit 9f30730

Please sign in to comment.