mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Run linter
This commit is contained in:
parent
f7a055fc78
commit
9f72b2710f
9 changed files with 66 additions and 32 deletions
|
@ -338,10 +338,10 @@ impl TypedNumericBound for NumericBound<FloatWidth> {
|
|||
|
||||
impl TypedNumericBound for NumericBound<NumWidth> {
|
||||
fn num_type(&self) -> Type {
|
||||
match self {
|
||||
&NumericBound::None { width_variable } => num_num(Type::Variable(width_variable)),
|
||||
&NumericBound::Exact(NumWidth::Int(iw)) => NumericBound::Exact(iw).num_type(),
|
||||
&NumericBound::Exact(NumWidth::Float(fw)) => NumericBound::Exact(fw).num_type(),
|
||||
match *self {
|
||||
NumericBound::None { width_variable } => num_num(Type::Variable(width_variable)),
|
||||
NumericBound::Exact(NumWidth::Int(iw)) => NumericBound::Exact(iw).num_type(),
|
||||
NumericBound::Exact(NumWidth::Float(fw)) => NumericBound::Exact(fw).num_type(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue