mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
more clippy things
This commit is contained in:
parent
1439c1a21d
commit
e9d9c9acc2
2 changed files with 3 additions and 6 deletions
|
@ -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