Clippy fixes (#692)
This commit is contained in:
@@ -238,6 +238,11 @@ impl Mmap {
|
||||
pub fn len(&self) -> usize {
|
||||
self.len
|
||||
}
|
||||
|
||||
/// Return whether any memory has been allocated.
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.len() == 0
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Mmap {
|
||||
|
||||
Reference in New Issue
Block a user