diff --git a/src/sys/block_group.rs b/src/sys/block_group.rs index eb277b9..14bff9b 100644 --- a/src/sys/block_group.rs +++ b/src/sys/block_group.rs @@ -41,7 +41,7 @@ pub struct BlockGroupDescriptor { } impl BlockGroupDescriptor { - pub fn find_descriptor_table<'a>( + pub unsafe fn find_descriptor_table<'a>( haystack: &'a mut [u8], offset: isize, count: usize, diff --git a/src/sys/superblock.rs b/src/sys/superblock.rs index 93748a4..1a26b9b 100644 --- a/src/sys/superblock.rs +++ b/src/sys/superblock.rs @@ -147,7 +147,7 @@ pub struct Superblock { } impl Superblock { - pub fn find<'a>( + pub unsafe fn find<'a>( haystack: &'a mut [u8], offset: isize, ) -> Result<&'a mut Superblock, Error> {