summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-11-02 15:03:37 +0100
committerGitHub <noreply@github.com>2021-11-02 10:03:37 -0400
commit8e31bbbe551e95a40a78fd96671916f917218b93 (patch)
treef11c7b387b1d9c10898d6a67f37afcafea750d40 /ext
parent70336912b4307ac218426a3f5ce938bd8fb7dbb5 (diff)
chore: update to Rust edition 2021 (#12578)
Diffstat (limited to 'ext')
-rw-r--r--ext/broadcast_channel/Cargo.toml2
-rw-r--r--ext/console/Cargo.toml2
-rw-r--r--ext/crypto/Cargo.toml2
-rw-r--r--ext/crypto/lib.rs2
-rw-r--r--ext/fetch/Cargo.toml2
-rw-r--r--ext/ffi/Cargo.toml2
-rw-r--r--ext/ffi/lib.rs1
-rw-r--r--ext/http/Cargo.toml2
-rw-r--r--ext/net/Cargo.toml2
-rw-r--r--ext/timers/Cargo.toml2
-rw-r--r--ext/tls/Cargo.toml2
-rw-r--r--ext/url/Cargo.toml2
-rw-r--r--ext/web/Cargo.toml2
-rw-r--r--ext/webgpu/Cargo.toml2
-rw-r--r--ext/webgpu/binding.rs1
-rw-r--r--ext/webgpu/bundle.rs1
-rw-r--r--ext/webgpu/pipeline.rs1
-rw-r--r--ext/webgpu/texture.rs2
-rw-r--r--ext/webidl/Cargo.toml2
-rw-r--r--ext/websocket/Cargo.toml2
-rw-r--r--ext/webstorage/Cargo.toml2
21 files changed, 15 insertions, 23 deletions
diff --git a/ext/broadcast_channel/Cargo.toml b/ext/broadcast_channel/Cargo.toml
index 6e6aa7421..d200eb26b 100644
--- a/ext/broadcast_channel/Cargo.toml
+++ b/ext/broadcast_channel/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_broadcast_channel"
version = "0.17.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"
diff --git a/ext/console/Cargo.toml b/ext/console/Cargo.toml
index 83c47d73b..f6da8e511 100644
--- a/ext/console/Cargo.toml
+++ b/ext/console/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_console"
version = "0.23.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"
diff --git a/ext/crypto/Cargo.toml b/ext/crypto/Cargo.toml
index 9d2f6923b..b66911b1b 100644
--- a/ext/crypto/Cargo.toml
+++ b/ext/crypto/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_crypto"
version = "0.37.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"
diff --git a/ext/crypto/lib.rs b/ext/crypto/lib.rs
index d5f95677a..2170e3c72 100644
--- a/ext/crypto/lib.rs
+++ b/ext/crypto/lib.rs
@@ -14,8 +14,6 @@ use serde::Deserialize;
use serde::Serialize;
use std::cell::RefCell;
-use std::convert::TryFrom;
-use std::convert::TryInto;
use std::num::NonZeroU32;
use std::rc::Rc;
diff --git a/ext/fetch/Cargo.toml b/ext/fetch/Cargo.toml
index 36a7a8782..dacdc3297 100644
--- a/ext/fetch/Cargo.toml
+++ b/ext/fetch/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_fetch"
version = "0.46.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"
diff --git a/ext/ffi/Cargo.toml b/ext/ffi/Cargo.toml
index 7b8d8f27f..98520ea2e 100644
--- a/ext/ffi/Cargo.toml
+++ b/ext/ffi/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_ffi"
version = "0.10.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"
diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs
index f1e593296..a21601e3b 100644
--- a/ext/ffi/lib.rs
+++ b/ext/ffi/lib.rs
@@ -18,7 +18,6 @@ use serde::Deserialize;
use std::borrow::Cow;
use std::cell::RefCell;
use std::collections::HashMap;
-use std::convert::TryFrom;
use std::ffi::c_void;
use std::path::Path;
use std::path::PathBuf;
diff --git a/ext/http/Cargo.toml b/ext/http/Cargo.toml
index c5fc9fdae..d56c3dd54 100644
--- a/ext/http/Cargo.toml
+++ b/ext/http/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_http"
version = "0.15.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"
diff --git a/ext/net/Cargo.toml b/ext/net/Cargo.toml
index 5f22be0a8..435ceab9c 100644
--- a/ext/net/Cargo.toml
+++ b/ext/net/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_net"
version = "0.15.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"
diff --git a/ext/timers/Cargo.toml b/ext/timers/Cargo.toml
index 0916f2956..08d5980da 100644
--- a/ext/timers/Cargo.toml
+++ b/ext/timers/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_timers"
version = "0.21.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"
diff --git a/ext/tls/Cargo.toml b/ext/tls/Cargo.toml
index 869bf1271..c18a2f6fd 100644
--- a/ext/tls/Cargo.toml
+++ b/ext/tls/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_tls"
version = "0.10.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"
diff --git a/ext/url/Cargo.toml b/ext/url/Cargo.toml
index 2b4751054..a107f0042 100644
--- a/ext/url/Cargo.toml
+++ b/ext/url/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_url"
version = "0.23.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"
diff --git a/ext/web/Cargo.toml b/ext/web/Cargo.toml
index c4e8ae8a7..e7e022047 100644
--- a/ext/web/Cargo.toml
+++ b/ext/web/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_web"
version = "0.54.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"
diff --git a/ext/webgpu/Cargo.toml b/ext/webgpu/Cargo.toml
index e7a71de62..150f1d6a4 100644
--- a/ext/webgpu/Cargo.toml
+++ b/ext/webgpu/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_webgpu"
version = "0.24.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"
diff --git a/ext/webgpu/binding.rs b/ext/webgpu/binding.rs
index c2dbcf455..4f68c65e9 100644
--- a/ext/webgpu/binding.rs
+++ b/ext/webgpu/binding.rs
@@ -5,7 +5,6 @@ use deno_core::ResourceId;
use deno_core::{OpState, Resource};
use serde::Deserialize;
use std::borrow::Cow;
-use std::convert::{TryFrom, TryInto};
use crate::texture::{GpuTextureFormat, GpuTextureViewDimension};
diff --git a/ext/webgpu/bundle.rs b/ext/webgpu/bundle.rs
index df91104f5..8b2828a30 100644
--- a/ext/webgpu/bundle.rs
+++ b/ext/webgpu/bundle.rs
@@ -7,7 +7,6 @@ use deno_core::{OpState, Resource};
use serde::Deserialize;
use std::borrow::Cow;
use std::cell::RefCell;
-use std::convert::TryInto;
use std::rc::Rc;
use crate::pipeline::GpuIndexFormat;
diff --git a/ext/webgpu/pipeline.rs b/ext/webgpu/pipeline.rs
index 77edcadfb..3b0f03540 100644
--- a/ext/webgpu/pipeline.rs
+++ b/ext/webgpu/pipeline.rs
@@ -6,7 +6,6 @@ use deno_core::{OpState, Resource};
use serde::Deserialize;
use serde::Serialize;
use std::borrow::Cow;
-use std::convert::{TryFrom, TryInto};
use crate::sampler::GpuCompareFunction;
use crate::texture::GpuTextureFormat;
diff --git a/ext/webgpu/texture.rs b/ext/webgpu/texture.rs
index 47e7a14d2..ac3ceda6a 100644
--- a/ext/webgpu/texture.rs
+++ b/ext/webgpu/texture.rs
@@ -6,8 +6,6 @@ use deno_core::ResourceId;
use deno_core::{OpState, Resource};
use serde::Deserialize;
use std::borrow::Cow;
-use std::convert::TryFrom;
-use std::convert::TryInto;
use super::error::WebGpuResult;
pub(crate) struct WebGpuTexture(pub(crate) wgpu_core::id::TextureId);
diff --git a/ext/webidl/Cargo.toml b/ext/webidl/Cargo.toml
index e5d9113a5..9988236ab 100644
--- a/ext/webidl/Cargo.toml
+++ b/ext/webidl/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_webidl"
version = "0.23.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"
diff --git a/ext/websocket/Cargo.toml b/ext/websocket/Cargo.toml
index fdef6d55b..0d41f2de6 100644
--- a/ext/websocket/Cargo.toml
+++ b/ext/websocket/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_websocket"
version = "0.28.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"
diff --git a/ext/webstorage/Cargo.toml b/ext/webstorage/Cargo.toml
index e6de6465d..c4516d397 100644
--- a/ext/webstorage/Cargo.toml
+++ b/ext/webstorage/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_webstorage"
version = "0.18.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
readme = "README.md"
repository = "https://github.com/denoland/deno"