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 /ext/webgpu | |
parent | 70336912b4307ac218426a3f5ce938bd8fb7dbb5 (diff) |
chore: update to Rust edition 2021 (#12578)
Diffstat (limited to 'ext/webgpu')
-rw-r--r-- | ext/webgpu/Cargo.toml | 2 | ||||
-rw-r--r-- | ext/webgpu/binding.rs | 1 | ||||
-rw-r--r-- | ext/webgpu/bundle.rs | 1 | ||||
-rw-r--r-- | ext/webgpu/pipeline.rs | 1 | ||||
-rw-r--r-- | ext/webgpu/texture.rs | 2 |
5 files changed, 1 insertions, 6 deletions
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); |