mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Cleanup of lints
This commit is contained in:
parent
6e0e11ea79
commit
1960f429bd
6 changed files with 13 additions and 16 deletions
|
@ -2338,17 +2338,17 @@ impl<'a> Layout<'a> {
|
|||
}
|
||||
|
||||
match symbol {
|
||||
Symbol::NUM_DECIMAL => return cacheable(Ok(Layout::DEC)),
|
||||
Symbol::NUM_DECIMAL => cacheable(Ok(Layout::DEC)),
|
||||
|
||||
Symbol::NUM_NAT | Symbol::NUM_NATURAL => {
|
||||
return cacheable(Ok(Layout::usize(env.target_info)))
|
||||
cacheable(Ok(Layout::usize(env.target_info)))
|
||||
}
|
||||
|
||||
Symbol::NUM_NUM | Symbol::NUM_INT | Symbol::NUM_INTEGER
|
||||
if is_unresolved_var(env.subs, actual_var) =>
|
||||
{
|
||||
// default to i64
|
||||
return cacheable(Ok(Layout::default_integer()));
|
||||
cacheable(Ok(Layout::default_integer()))
|
||||
}
|
||||
|
||||
Symbol::NUM_FRAC | Symbol::NUM_FLOATINGPOINT
|
||||
|
@ -2356,7 +2356,7 @@ impl<'a> Layout<'a> {
|
|||
|| is_any_float_range(env.subs, actual_var) =>
|
||||
{
|
||||
// default to f64
|
||||
return cacheable(Ok(Layout::default_float()));
|
||||
cacheable(Ok(Layout::default_float()))
|
||||
}
|
||||
|
||||
_ => Self::from_var(env, actual_var),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue