1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 00:29:09 -05:00

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] #[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>(); let state = s.borrow_mut::<State>();
if let Some(config_specifier) = &state.maybe_config_specifier { if let Some(config_specifier) = &state.maybe_config_specifier {
let cwd = config_specifier.join("./")?; let cwd = config_specifier.join("./")?;

View file

@ -28,7 +28,7 @@ pub type StartTime = Instant;
// If the High precision flag is not set, the // If the High precision flag is not set, the
// nanoseconds are rounded on 2ms. // nanoseconds are rounded on 2ms.
#[op] #[op]
pub fn op_now<TP>(state: &mut OpState, _argument: ()) -> f64 pub fn op_now<TP>(state: &mut OpState) -> f64
where where
TP: TimersPermission + 'static, TP: TimersPermission + 'static,
{ {

View file

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