Skip to content

Commit

Permalink
stat: fmt code
Browse files Browse the repository at this point in the history
  • Loading branch information
mengzhuo committed Sep 24, 2024
1 parent a03ba8e commit 46a6e26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stat/stat.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ pub fn get_filetype(mode u16) FileType {

pub fn get_mode2(mode u16) FileMode {
return FileMode{
typ: get_filetype(mode)
owner: FilePermission{
typ: get_filetype(mode)
owner: FilePermission{
read: (mode & u32(C.S_IRUSR)) != 0
write: (mode & u32(C.S_IWUSR)) != 0
execute: (mode & u32(C.S_IXUSR)) != 0
special: (mode & u32(C.S_ISUID)) != 0
}
group: FilePermission{
group: FilePermission{
read: (mode & u32(C.S_IRGRP)) != 0
write: (mode & u32(C.S_IWGRP)) != 0
execute: (mode & u32(C.S_IXGRP)) != 0
Expand Down

0 comments on commit 46a6e26

Please sign in to comment.