mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
more clippy things
This commit is contained in:
parent
1439c1a21d
commit
e9d9c9acc2
2 changed files with 3 additions and 6 deletions
|
@ -3016,10 +3016,7 @@ pub fn from_can<'a>(
|
|||
env.arena,
|
||||
);
|
||||
temp.push(closure_data_layout.clone());
|
||||
Layout::FunctionPointer(
|
||||
temp.into_bump_slice(),
|
||||
ret_layout.clone(),
|
||||
)
|
||||
Layout::FunctionPointer(temp.into_bump_slice(), ret_layout)
|
||||
};
|
||||
|
||||
let full_layout = function_ptr_layout.clone();
|
||||
|
|
|
@ -57,7 +57,7 @@ impl<'a> ClosureLayout<'a> {
|
|||
}
|
||||
}
|
||||
fn from_unwrapped(layouts: &'a [Layout<'a>]) -> Self {
|
||||
debug_assert!(layouts.len() > 0);
|
||||
debug_assert!(!layouts.is_empty());
|
||||
ClosureLayout {
|
||||
captured: layouts,
|
||||
max_size: layouts,
|
||||
|
@ -102,7 +102,7 @@ impl<'a> ClosureLayout<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn into_block_of_memory_layout(&self) -> Layout<'a> {
|
||||
pub fn as_block_of_memory_layout(&self) -> Layout<'a> {
|
||||
Layout::Struct(self.max_size)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue