mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-13 09:49:11 +03:00
Make is_empty const
This commit is contained in:
parent
c8007201b0
commit
bf38493d65
@ -234,7 +234,7 @@ impl<T> SubsSlice<T> {
|
||||
self.length as usize
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
pub const fn is_empty(&self) -> bool {
|
||||
self.len() == 0
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user