From b4b4e5980be5e49211673b4d01c9f7d04f8572d4 Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Tue, 26 Jul 2022 20:34:08 +0300 Subject: [PATCH] chore(ops): Remove unused arguments from ops (#15315) --- cli/tsc.rs | 2 +- ext/web/timers.rs | 2 +- runtime/ops/os.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/tsc.rs b/cli/tsc.rs index 633b4cd30d..0b9f025830 100644 --- a/cli/tsc.rs +++ b/cli/tsc.rs @@ -315,7 +315,7 @@ fn op_create_hash(s: &mut OpState, args: Value) -> Result { } #[op] -fn op_cwd(s: &mut OpState, _args: Value) -> Result { +fn op_cwd(s: &mut OpState) -> Result { let state = s.borrow_mut::(); if let Some(config_specifier) = &state.maybe_config_specifier { let cwd = config_specifier.join("./")?; diff --git a/ext/web/timers.rs b/ext/web/timers.rs index f57baa559d..ebef717ba9 100644 --- a/ext/web/timers.rs +++ b/ext/web/timers.rs @@ -28,7 +28,7 @@ pub type StartTime = Instant; // If the High precision flag is not set, the // nanoseconds are rounded on 2ms. #[op] -pub fn op_now(state: &mut OpState, _argument: ()) -> f64 +pub fn op_now(state: &mut OpState) -> f64 where TP: TimersPermission + 'static, { diff --git a/runtime/ops/os.rs b/runtime/ops/os.rs index dbc87daab3..5d275a8366 100644 --- a/runtime/ops/os.rs +++ b/runtime/ops/os.rs @@ -53,7 +53,7 @@ pub fn init_for_worker() -> Extension { } #[op] -fn noop_op(_code: i32) -> Result<(), AnyError> { +fn noop_op() -> Result<(), AnyError> { Ok(()) }