diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/Cargo.toml | 3 | ||||
-rw-r--r-- | runtime/ops/http.rs | 10 | ||||
-rw-r--r-- | runtime/web_worker.rs | 2 | ||||
-rw-r--r-- | runtime/worker.rs | 2 |
4 files changed, 5 insertions, 12 deletions
diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 35b160636..72ffa3eae 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -28,6 +28,9 @@ hmr = ["include_js_files_for_snapshotting"] # assertion that a snapshot is provided. only_snapshotted_js_sources = ["include_js_files_for_snapshotting"] +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tokio_unstable)'] } + [lib] name = "deno_runtime" path = "lib.rs" diff --git a/runtime/ops/http.rs b/runtime/ops/http.rs index ca51b001d..cde2d5858 100644 --- a/runtime/ops/http.rs +++ b/runtime/ops/http.rs @@ -8,11 +8,9 @@ use deno_core::error::AnyError; use deno_core::op2; use deno_core::OpState; use deno_core::ResourceId; -use deno_core::ToJsBuffer; use deno_http::http_create_conn_resource; use deno_net::io::TcpStreamResource; use deno_net::ops_tls::TlsStreamResource; -use serde::Serialize; pub const UNSTABLE_FEATURE_NAME: &str = "http"; @@ -74,11 +72,3 @@ fn op_http_start( Err(bad_resource_id()) } - -#[derive(Serialize)] -#[serde(rename_all = "camelCase")] -pub struct HttpUpgradeResult { - conn_rid: ResourceId, - conn_type: &'static str, - read_buf: ToJsBuffer, -} diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs index 2611b6f34..ed1e19c9e 100644 --- a/runtime/web_worker.rs +++ b/runtime/web_worker.rs @@ -514,7 +514,7 @@ impl WebWorker { ops::web_worker::deno_web_worker::init_ops_and_esm(), ]; - #[cfg(hmr)] + #[cfg(feature = "hmr")] assert!( cfg!(not(feature = "only_snapshotted_js_sources")), "'hmr' is incompatible with 'only_snapshotted_js_sources'." diff --git a/runtime/worker.rs b/runtime/worker.rs index bd67c8706..696786b56 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -448,7 +448,7 @@ impl MainWorker { ops::web_worker::deno_web_worker::init_ops_and_esm().disable(), ]; - #[cfg(hmr)] + #[cfg(feature = "hmr")] assert!( cfg!(not(feature = "only_snapshotted_js_sources")), "'hmr' is incompatible with 'only_snapshotted_js_sources'." |