fix mounted information
This commit is contained in:
1 parent
967c082085
commit
b43dfb1f67
6 files changed
+44
-35
No files matched your search
@@ -23,11 +23,6 @@ impl Default for MountId {
|
||||
}
|
||||
|
||||
impl MountId {
|
||||
pub(crate) fn new(id: usize) -> Self {
|
||||
debug_assert_ne!(id, usize::MAX);
|
||||
Self(id)
|
||||
}
|
||||
|
||||
pub(crate) fn as_usize(self) -> Option<usize> {
|
||||
if self.0 == usize::MAX {
|
||||
None
|
||||
@@ -35,10 +30,6 @@ impl MountId {
|
||||
Some(self.0)
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn is_none(self) -> bool {
|
||||
self.0 == usize::MAX
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
|
||||
Reference in new issue
Block a user