Skip to content

Commit

Permalink
chore(ops): Remove unused arguments from ops (denoland#15315)
Browse files Browse the repository at this point in the history
  • Loading branch information
aapoalas authored Jul 26, 2022
1 parent 2e1d6d3 commit b4b4e59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/tsc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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("./")?;
Expand Down
2 changes: 1 addition & 1 deletion ext/web/timers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
{
Expand Down
2 changes: 1 addition & 1 deletion runtime/ops/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn init_for_worker() -> Extension {
}

#[op]
fn noop_op(_code: i32) -> Result<(), AnyError> {
fn noop_op() -> Result<(), AnyError> {
Ok(())
}

Expand Down

0 comments on commit b4b4e59

Please sign in to comment.