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(()) }