Make is_empty const

This commit is contained in:
Richard Feldman 2021-08-12 21:39:57 -04:00
parent c8007201b0
commit bf38493d65

View File

@ -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
}