From 142449ecab20006c5cfd15462814650596bc034d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 21 Sep 2023 16:08:23 +0200 Subject: refactor: rewrite some ops to op2 macro (#20603) --- runtime/ops/os/mod.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'runtime/ops/os') 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, AnyError> { state .borrow_mut::() @@ -264,9 +264,9 @@ fn op_gid(state: &mut OpState) -> Result, AnyError> { } } -// TODO(bartlomieju): op2 doesn't support cfg attrs #[cfg(windows)] -#[op] +#[op2] +#[smi] fn op_gid(state: &mut OpState) -> Result, AnyError> { state .borrow_mut::() @@ -274,9 +274,9 @@ fn op_gid(state: &mut OpState) -> Result, AnyError> { Ok(None) } -// TODO(bartlomieju): op2 doesn't support cfg attrs #[cfg(not(windows))] -#[op] +#[op2] +#[smi] fn op_uid(state: &mut OpState) -> Result, AnyError> { state .borrow_mut::() @@ -288,9 +288,9 @@ fn op_uid(state: &mut OpState) -> Result, AnyError> { } } -// TODO(bartlomieju): op2 doesn't support cfg attrs #[cfg(windows)] -#[op] +#[op2] +#[smi] fn op_uid(state: &mut OpState) -> Result, AnyError> { state .borrow_mut::() -- cgit v1.2.3