diff options
-rw-r--r-- | cli/tsc.rs | 2 | ||||
-rw-r--r-- | ext/web/timers.rs | 2 | ||||
-rw-r--r-- | runtime/ops/os.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cli/tsc.rs b/cli/tsc.rs index 633b4cd30..0b9f02583 100644 --- a/cli/tsc.rs +++ b/cli/tsc.rs @@ -315,7 +315,7 @@ fn op_create_hash(s: &mut OpState, args: Value) -> Result<Value, AnyError> { } #[op] -fn op_cwd(s: &mut OpState, _args: Value) -> Result<String, AnyError> { +fn op_cwd(s: &mut OpState) -> Result<String, AnyError> { let state = s.borrow_mut::<State>(); 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 f57baa559..ebef717ba 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<TP>(state: &mut OpState, _argument: ()) -> f64 +pub fn op_now<TP>(state: &mut OpState) -> f64 where TP: TimersPermission + 'static, { diff --git a/runtime/ops/os.rs b/runtime/ops/os.rs index dbc87daab..5d275a836 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(()) } |