Skip to content

Commit

Permalink
Run cargo fmt after rustup to 1.72.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kraigher committed Sep 8, 2023
1 parent 5137bef commit 184a589
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion vhdl_lang/src/analysis/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,9 @@ impl DesignRoot {
let std_logic_arena = &data.result().arena;
if let AnyDesignUnit::Primary(primary) = data.deref() {
if let Some(ent) = primary.ent_id() {
let AnyEntKind::Design(Design::Package(_, ref region)) = std_logic_arena.get(ent).kind() else {
let AnyEntKind::Design(Design::Package(_, ref region)) =
std_logic_arena.get(ent).kind()
else {
unreachable!()
};

Expand Down
5 changes: 4 additions & 1 deletion vhdl_lang/src/analysis/standard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,10 @@ impl<'a> AnalyzeContext<'a> {
typ: TypeEnt<'a>,
matching_op: bool,
) -> impl Iterator<Item = EntRef<'a>> {
let Type::Array{indexes, elem_type, ..} = typ.kind() else {
let Type::Array {
indexes, elem_type, ..
} = typ.kind()
else {
unreachable!("Must be array type")
};

Expand Down
5 changes: 3 additions & 2 deletions vhdl_lang/src/syntax/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,9 @@ fn parse_expression_or_aggregate(stream: &TokenStream) -> ParseResult<WithPos<Ex
{
let WithPos {
item: Choice::Expression(expr),
pos
} = choices.pop().unwrap() else {
pos,
} = choices.pop().unwrap()
else {
unreachable!();
};

Expand Down

0 comments on commit 184a589

Please sign in to comment.