Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher committed Jun 25, 2024
1 parent 4ba51ad commit 1e6a1e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion compiler/noirc_frontend/src/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ pub use traits::*;
pub use type_alias::*;

use crate::{
node_interner::QuotedTypeId,
parser::{ParserError, ParserErrorReason},
token::IntType,
BinaryTypeOperator, node_interner::QuotedTypeId,
BinaryTypeOperator,
};
use acvm::acir::AcirField;
use iter_extended::vecmap;
Expand Down
5 changes: 4 additions & 1 deletion compiler/noirc_frontend/src/lexer/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ use acvm::{acir::AcirField, FieldElement};
use noirc_errors::{Position, Span, Spanned};
use std::{fmt, iter::Map, vec::IntoIter};

use crate::{lexer::errors::LexerErrorKind, node_interner::{ExprId, QuotedTypeId}};
use crate::{
lexer::errors::LexerErrorKind,
node_interner::{ExprId, QuotedTypeId},
};

/// Represents a token in noir's grammar - a word, number,
/// or symbol that can be used in noir's syntax. This is the
Expand Down
2 changes: 1 addition & 1 deletion tooling/nargo_fmt/src/rewrite/typ.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub(crate) fn rewrite(visitor: &FmtVisitor, _shape: Shape, typ: UnresolvedType)
}
UnresolvedTypeData::Resolved(_) => {
unreachable!("Unexpected macro expansion of a type in nargo fmt input")
},
}

UnresolvedTypeData::Unspecified => todo!(),
UnresolvedTypeData::FieldElement
Expand Down

0 comments on commit 1e6a1e1

Please sign in to comment.