Skip to content

Commit 68ac241

Browse files
committed
add into_inner on inode wrapper types
1 parent 6aebac0 commit 68ac241

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext2/src/inode.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ macro_rules! inode_type {
1818
pub fn inode(&self) -> &Inode {
1919
&self.1
2020
}
21+
22+
pub fn into_inner(self) -> (InodeAddress, Inode) {
23+
(self.0, self.1)
24+
}
2125
}
2226

2327
impl Deref for $name {

0 commit comments

Comments
 (0)