mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Cleanup of lints
This commit is contained in:
parent
6e0e11ea79
commit
1960f429bd
6 changed files with 13 additions and 16 deletions
|
@ -111,10 +111,10 @@ impl From<&StoredValue> for CodeGenNumType {
|
|||
}
|
||||
|
||||
fn layout_is_signed_int(layout: InLayout) -> bool {
|
||||
match layout {
|
||||
Layout::I8 | Layout::I16 | Layout::I32 | Layout::I64 | Layout::I128 => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(
|
||||
layout,
|
||||
Layout::I8 | Layout::I16 | Layout::I32 | Layout::I64 | Layout::I128
|
||||
)
|
||||
}
|
||||
|
||||
fn symbol_is_signed_int(backend: &WasmBackend<'_, '_>, symbol: Symbol) -> bool {
|
||||
|
@ -2386,7 +2386,7 @@ pub fn call_higher_order_lowlevel<'a>(
|
|||
}
|
||||
}
|
||||
|
||||
fn unwrap_list_elem_layout<'a>(list_layout: Layout<'a>) -> InLayout<'a> {
|
||||
fn unwrap_list_elem_layout(list_layout: Layout) -> InLayout {
|
||||
match list_layout {
|
||||
Layout::Builtin(Builtin::List(x)) => x,
|
||||
e => internal_error!("expected List layout, got {:?}", e),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue