diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-09-21 16:08:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 08:08:23 -0600 |
commit | 142449ecab20006c5cfd15462814650596bc034d (patch) | |
tree | b4e796585f870fbf0b1ebe696a474abb1a09d2ac /runtime/ops/os/mod.rs | |
parent | cf6f649829fbb0562681bc9db0c4c1261d4a40b1 (diff) |
refactor: rewrite some ops to op2 macro (#20603)
Diffstat (limited to 'runtime/ops/os/mod.rs')
-rw-r--r-- | runtime/ops/os/mod.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/runtime/ops/os/mod.rs b/runtime/ops/os/mod.rs index 80f37514f..166ccb867 100644 --- a/runtime/ops/os/mod.rs +++ b/runtime/ops/os/mod.rs @@ -250,9 +250,9 @@ fn op_system_memory_info( Ok(sys_info::mem_info()) } -// TODO(bartlomieju): op2 doesn't support cfg attrs #[cfg(not(windows))] -#[op] +#[op2] +#[smi] fn op_gid(state: &mut OpState) -> Result<Option<u32>, AnyError> { state .borrow_mut::<PermissionsContainer>() @@ -264,9 +264,9 @@ fn op_gid(state: &mut OpState) -> Result<Option<u32>, AnyError> { } } -// TODO(bartlomieju): op2 doesn't support cfg attrs #[cfg(windows)] -#[op] +#[op2] +#[smi] fn op_gid(state: &mut OpState) -> Result<Option<u32>, AnyError> { state .borrow_mut::<PermissionsContainer>() @@ -274,9 +274,9 @@ fn op_gid(state: &mut OpState) -> Result<Option<u32>, AnyError> { Ok(None) } -// TODO(bartlomieju): op2 doesn't support cfg attrs #[cfg(not(windows))] -#[op] +#[op2] +#[smi] fn op_uid(state: &mut OpState) -> Result<Option<u32>, AnyError> { state .borrow_mut::<PermissionsContainer>() @@ -288,9 +288,9 @@ fn op_uid(state: &mut OpState) -> Result<Option<u32>, AnyError> { } } -// TODO(bartlomieju): op2 doesn't support cfg attrs #[cfg(windows)] -#[op] +#[op2] +#[smi] fn op_uid(state: &mut OpState) -> Result<Option<u32>, AnyError> { state .borrow_mut::<PermissionsContainer>() |