mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 19:33:23 +00:00
Implement atomic wrapper for integer-like type
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
a7cb71161d
commit
21fedd1b60
@ -93,7 +93,7 @@ impl Inode for Ext2Inode {
|
||||
}
|
||||
|
||||
fn set_owner(&self, uid: Uid) -> Result<()> {
|
||||
self.set_uid(uid.as_u32());
|
||||
self.set_uid(uid.into());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@ -102,7 +102,7 @@ impl Inode for Ext2Inode {
|
||||
}
|
||||
|
||||
fn set_group(&self, gid: Gid) -> Result<()> {
|
||||
self.set_gid(gid.as_u32());
|
||||
self.set_gid(gid.into());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user