diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-11-02 15:03:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-02 10:03:37 -0400 |
| commit | 8e31bbbe551e95a40a78fd96671916f917218b93 (patch) | |
| tree | f11c7b387b1d9c10898d6a67f37afcafea750d40 /core | |
| parent | 70336912b4307ac218426a3f5ce938bd8fb7dbb5 (diff) | |
chore: update to Rust edition 2021 (#12578)
Diffstat (limited to 'core')
| -rw-r--r-- | core/Cargo.toml | 2 | ||||
| -rw-r--r-- | core/bindings.rs | 2 | ||||
| -rw-r--r-- | core/error.rs | 2 | ||||
| -rw-r--r-- | core/examples/http_bench_json_ops.rs | 1 | ||||
| -rw-r--r-- | core/modules.rs | 1 | ||||
| -rw-r--r-- | core/runtime.rs | 1 |
6 files changed, 1 insertions, 8 deletions
diff --git a/core/Cargo.toml b/core/Cargo.toml index 089826ec6..0d3102988 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -3,7 +3,7 @@ name = "deno_core" version = "0.105.0" authors = ["the Deno authors"] -edition = "2018" +edition = "2021" license = "MIT" readme = "README.md" repository = "https://github.com/denoland/deno" diff --git a/core/bindings.rs b/core/bindings.rs index 2ba8059a0..d1b01c2d9 100644 --- a/core/bindings.rs +++ b/core/bindings.rs @@ -17,8 +17,6 @@ use serde::Deserialize; use serde::Serialize; use serde_v8::to_v8; use std::cell::RefCell; -use std::convert::TryFrom; -use std::convert::TryInto; use std::option::Option; use url::Url; use v8::HandleScope; diff --git a/core/error.rs b/core/error.rs index b94b7f192..793a42603 100644 --- a/core/error.rs +++ b/core/error.rs @@ -4,8 +4,6 @@ pub use anyhow::anyhow; pub use anyhow::bail; pub use anyhow::Context; use std::borrow::Cow; -use std::convert::TryFrom; -use std::convert::TryInto; use std::error::Error; use std::fmt; use std::fmt::Debug; diff --git a/core/examples/http_bench_json_ops.rs b/core/examples/http_bench_json_ops.rs index 5989a472f..749f40485 100644 --- a/core/examples/http_bench_json_ops.rs +++ b/core/examples/http_bench_json_ops.rs @@ -10,7 +10,6 @@ use deno_core::Resource; use deno_core::ResourceId; use deno_core::ZeroCopyBuf; use std::cell::RefCell; -use std::convert::TryFrom; use std::env; use std::io::Error; use std::net::SocketAddr; diff --git a/core/modules.rs b/core/modules.rs index ba7db507e..dc2e5bb32 100644 --- a/core/modules.rs +++ b/core/modules.rs @@ -16,7 +16,6 @@ use std::cell::RefCell; use std::collections::HashMap; use std::collections::HashSet; use std::collections::VecDeque; -use std::convert::TryFrom; use std::future::Future; use std::pin::Pin; use std::rc::Rc; diff --git a/core/runtime.rs b/core/runtime.rs index 327662e7c..80221295d 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -29,7 +29,6 @@ use futures::task::AtomicWaker; use std::any::Any; use std::cell::RefCell; use std::collections::HashMap; -use std::convert::TryFrom; use std::ffi::c_void; use std::mem::forget; use std::option::Option; |
