make find* functions unsafe

This commit is contained in:
Szymon Walter 2018-03-18 20:38:48 +01:00
parent 0c750fbdda
commit a9d5677c57
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ pub struct BlockGroupDescriptor {
} }
impl BlockGroupDescriptor { impl BlockGroupDescriptor {
pub fn find_descriptor_table<'a>( pub unsafe fn find_descriptor_table<'a>(
haystack: &'a mut [u8], haystack: &'a mut [u8],
offset: isize, offset: isize,
count: usize, count: usize,

View file

@ -147,7 +147,7 @@ pub struct Superblock {
} }
impl Superblock { impl Superblock {
pub fn find<'a>( pub unsafe fn find<'a>(
haystack: &'a mut [u8], haystack: &'a mut [u8],
offset: isize, offset: isize,
) -> Result<&'a mut Superblock, Error> { ) -> Result<&'a mut Superblock, Error> {