summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAapo Alasuutari <aapo.alasuutari@gmail.com>2022-07-26 20:34:08 +0300
committerGitHub <noreply@github.com>2022-07-26 19:34:08 +0200
commitb4b4e5980be5e49211673b4d01c9f7d04f8572d4 (patch)
tree5814e1ff333135b39a54521d89ef7df1a6db7506
parent2e1d6d35081f17cec220a11b3578b135fb42df91 (diff)
chore(ops): Remove unused arguments from ops (#15315)
-rw-r--r--cli/tsc.rs2
-rw-r--r--ext/web/timers.rs2
-rw-r--r--runtime/ops/os.rs2
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(())
}