Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher committed Mar 20, 2024
1 parent 3e71f58 commit 707c4b3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions compiler/noirc_frontend/src/hir_def/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1630,9 +1630,14 @@ impl Type {

// Expect that this function should only be called on instantiated types
Forall(..) => unreachable!(),
TraitAsType(..) | FieldElement | Integer(_, _) | Bool | Constant(_) | Unit | Code | Error => {
self.clone()
}
TraitAsType(..)
| FieldElement
| Integer(_, _)
| Bool
| Constant(_)
| Unit
| Code
| Error => self.clone(),
}
}

Expand Down Expand Up @@ -1761,7 +1766,6 @@ impl From<&Type> for PrintableType {
Type::MutableReference(typ) => {
PrintableType::MutableReference { typ: Box::new(typ.as_ref().into()) }
}
// Is this actually unreachable?
Type::Code => unreachable!(),
}
}
Expand Down

0 comments on commit 707c4b3

Please sign in to comment.