chore(ops): Remove unused arguments from ops (#15315)

This commit is contained in:
Aapo Alasuutari 2022-07-26 20:34:08 +03:00 committed by GitHub
parent 2e1d6d3508
commit b4b4e5980b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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("./")?;

View File

@ -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,
{

View File

@ -53,7 +53,7 @@ pub fn init_for_worker() -> Extension {
}
#[op]
fn noop_op(_code: i32) -> Result<(), AnyError> {
fn noop_op() -> Result<(), AnyError> {
Ok(())
}