From 9c42b5e03b6500aaf38b37b208ad9ae1ba2bbaf3 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 15 Jun 2021 13:22:28 -0400 Subject: Remove various unnecessary allow(clippy) declarations (#10971) --- runtime/metrics.rs | 1 - runtime/ops/fs.rs | 1 - runtime/ops/signal.rs | 1 - runtime/ops/web_worker.rs | 2 -- runtime/ops/worker_host.rs | 1 - 5 files changed, 6 deletions(-) (limited to 'runtime') diff --git a/runtime/metrics.rs b/runtime/metrics.rs index aabe953d0..22b037a1e 100644 --- a/runtime/metrics.rs +++ b/runtime/metrics.rs @@ -25,7 +25,6 @@ struct MetricsReturn { ops: Value, } -#[allow(clippy::unnecessary_wraps)] fn op_metrics( state: &mut OpState, _args: (), diff --git a/runtime/ops/fs.rs b/runtime/ops/fs.rs index a80eeb3ac..cd93d0517 100644 --- a/runtime/ops/fs.rs +++ b/runtime/ops/fs.rs @@ -350,7 +350,6 @@ async fn op_fstat_async( Ok(get_stat(metadata)) } -#[allow(clippy::unnecessary_wraps)] fn op_umask( state: &mut OpState, mask: Option, diff --git a/runtime/ops/signal.rs b/runtime/ops/signal.rs index 2a72625d9..b3dfb5aab 100644 --- a/runtime/ops/signal.rs +++ b/runtime/ops/signal.rs @@ -56,7 +56,6 @@ impl Resource for SignalStreamResource { } #[cfg(unix)] -#[allow(clippy::unnecessary_wraps)] fn op_signal_bind( state: &mut OpState, signo: i32, diff --git a/runtime/ops/web_worker.rs b/runtime/ops/web_worker.rs index e3ede869d..39aa2c0a9 100644 --- a/runtime/ops/web_worker.rs +++ b/runtime/ops/web_worker.rs @@ -57,7 +57,6 @@ async fn op_worker_get_message( Ok(maybe_data.unwrap_or_else(ZeroCopyBuf::empty)) } -#[allow(clippy::unnecessary_wraps)] fn op_worker_close(state: &mut OpState, _: (), _: ()) -> Result<(), AnyError> { // Notify parent that we're finished let mut handle = state.borrow_mut::().clone(); @@ -71,7 +70,6 @@ fn op_worker_close(state: &mut OpState, _: (), _: ()) -> Result<(), AnyError> { /// this same op to pass the error to its own parent (in case /// `e.preventDefault()` was not called in `worker.onerror`). This /// is done until the error reaches the root/ main worker. -#[allow(clippy::unnecessary_wraps)] fn op_worker_unhandled_error( state: &mut OpState, message: String, diff --git a/runtime/ops/worker_host.rs b/runtime/ops/worker_host.rs index a5698fa6e..57d3ac2b8 100644 --- a/runtime/ops/worker_host.rs +++ b/runtime/ops/worker_host.rs @@ -509,7 +509,6 @@ fn op_create_worker( Ok(worker_id) } -#[allow(clippy::unnecessary_wraps)] fn op_host_terminate_worker( state: &mut OpState, id: WorkerId, -- cgit v1.2.3