diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-03-14 23:38:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 23:38:53 +0100 |
commit | 88d0f01948b68f4a4d87e02a5138e94ac0a6eaea (patch) | |
tree | 2b50e5d2c6990c94f47e604281f3557b3efd9736 /runtime/ops/signal.rs | |
parent | 9f494dc405afc4b1b29fa4c813bd5751f26aaa36 (diff) |
feat(ops): custom arity (#13949)
Also cleanup & drop ignored wildcard op-args
Diffstat (limited to 'runtime/ops/signal.rs')
-rw-r--r-- | runtime/ops/signal.rs | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/runtime/ops/signal.rs b/runtime/ops/signal.rs index d9f05a777..efab5a932 100644 --- a/runtime/ops/signal.rs +++ b/runtime/ops/signal.rs @@ -178,7 +178,6 @@ pub fn signal_str_to_int(s: &str) -> Result<libc::c_int, AnyError> { fn op_signal_bind( state: &mut OpState, sig: String, - _: (), ) -> Result<ResourceId, AnyError> { let signo = signal_str_to_int(&sig)?; if signal_hook_registry::FORBIDDEN.contains(&signo) { @@ -200,7 +199,6 @@ fn op_signal_bind( async fn op_signal_poll( state: Rc<RefCell<OpState>>, rid: ResourceId, - _: (), ) -> Result<bool, AnyError> { let resource = state .borrow_mut() @@ -220,7 +218,6 @@ async fn op_signal_poll( pub fn op_signal_unbind( state: &mut OpState, rid: ResourceId, - _: (), ) -> Result<(), AnyError> { state.resource_table.close(rid)?; Ok(()) @@ -228,30 +225,18 @@ pub fn op_signal_unbind( #[cfg(not(unix))] #[op] -pub fn op_signal_bind( - _state: &mut OpState, - _: (), - _: (), -) -> Result<(), AnyError> { +pub fn op_signal_bind(_state: &mut OpState) -> Result<(), AnyError> { Err(generic_error("not implemented")) } #[cfg(not(unix))] #[op] -fn op_signal_unbind( - _state: &mut OpState, - _: (), - _: (), -) -> Result<(), AnyError> { +fn op_signal_unbind(_state: &mut OpState) -> Result<(), AnyError> { Err(generic_error("not implemented")) } #[cfg(not(unix))] #[op] -async fn op_signal_poll( - _state: Rc<RefCell<OpState>>, - _: (), - _: (), -) -> Result<(), AnyError> { +async fn op_signal_poll(_state: Rc<RefCell<OpState>>) -> Result<(), AnyError> { Err(generic_error("not implemented")) } |