mirror of
https://github.com/panpaul/tiny_os
synced 2024-09-20 17:55:20 +08:00
chore: bitmap.rs: make clippy happy
This commit is contained in:
parent
a57ece2f76
commit
2b268de52d
@ -36,7 +36,7 @@ impl BitmapOps for Bitmap32 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return None;
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
fn dealloc(&mut self, index: usize) {
|
fn dealloc(&mut self, index: usize) {
|
||||||
@ -85,7 +85,7 @@ impl<B: BitmapOps> BitmapOps for Bitmap<B> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return None;
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
fn dealloc(&mut self, index: usize) {
|
fn dealloc(&mut self, index: usize) {
|
||||||
@ -103,7 +103,7 @@ impl<B: BitmapOps> Bitmap<B> {
|
|||||||
return Some(i * B::CAPACITY + sub);
|
return Some(i * B::CAPACITY + sub);
|
||||||
}
|
}
|
||||||
self.bits |= 1 << i;
|
self.bits |= 1 << i;
|
||||||
return None;
|
None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user