mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Miscellaneous cleanup
This commit is contained in:
parent
1b38cd0504
commit
28c3709ddf
6 changed files with 7 additions and 33 deletions
|
@ -162,8 +162,6 @@ impl FunctionLayout {
|
|||
subs: &Subs,
|
||||
flat_type: &FlatType,
|
||||
) -> Result<Self, LayoutError> {
|
||||
use LayoutError::*;
|
||||
|
||||
match flat_type {
|
||||
FlatType::Func(arguments, lambda_set, result) => {
|
||||
let slice = Slice::reserve(layouts, arguments.len() + 1);
|
||||
|
@ -740,8 +738,6 @@ impl Layout {
|
|||
subs: &Subs,
|
||||
flat_type: &FlatType,
|
||||
) -> Result<Layout, LayoutError> {
|
||||
use LayoutError::*;
|
||||
|
||||
match flat_type {
|
||||
FlatType::Apply(Symbol::LIST_LIST, arguments) => {
|
||||
debug_assert_eq!(arguments.len(), 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue