make `update_global` and `update_inode` private

pull/3/head
Szymon Walter 2018-03-19 21:09:48 +01:00
parent 95533395d9
commit d1905db917
1 changed files with 5 additions and 2 deletions

View File

@ -55,7 +55,8 @@ where
})
}
pub fn update_global(&mut self) -> Result<(), Error> {
#[allow(dead_code)]
fn update_global(&mut self) -> Result<(), Error> {
// superblock
{
let slice = BufferSlice::from_cast(
@ -78,7 +79,8 @@ where
Ok(())
}
pub fn update_inode(
#[allow(dead_code)]
fn update_inode(
&mut self,
&(ref inode, offset): &(Inode, usize),
) -> Result<(), Error> {
@ -124,6 +126,7 @@ where
&self.superblock.inner
}
#[allow(dead_code)]
fn superblock_mut(&mut self) -> &mut Superblock {
&mut self.superblock.inner
}