Skip to content

Commit

Permalink
add into_inner on inode wrapper types
Browse files Browse the repository at this point in the history
  • Loading branch information
tsatke committed Oct 27, 2023
1 parent 6aebac0 commit 68ac241
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext2/src/inode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ macro_rules! inode_type {
pub fn inode(&self) -> &Inode {
&self.1
}

pub fn into_inner(self) -> (InodeAddress, Inode) {
(self.0, self.1)
}
}

impl Deref for $name {
Expand Down

0 comments on commit 68ac241

Please sign in to comment.