Skip to content

Commit 797632e

Browse files
chore: warn(unsafe_op_in_unsafe_fn) for {deno_webgpu,player,wgpu-types}`
This commit bundles all of the trivial cases for enabling this lint, where no action is required beyond adding the lint.
1 parent acadd8d commit 797632e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

deno_webgpu/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
22

3+
#![warn(unsafe_op_in_unsafe_fn)]
4+
35
use deno_core::error::AnyError;
46
use deno_core::include_js_files;
57
use deno_core::op;

player/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* so that we don't accidentally try to use the same ID.
77
!*/
88

9+
#![warn(unsafe_op_in_unsafe_fn)]
10+
911
use wgc::device::trace;
1012

1113
use std::{borrow::Cow, fmt::Debug, fs, marker::PhantomData, path::Path};

wgpu-types/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// We don't use syntax sugar where it's not necessary.
77
clippy::match_like_matches_macro,
88
)]
9-
#![warn(missing_docs)]
9+
#![warn(missing_docs, unsafe_op_in_unsafe_fn)]
1010

1111
#[cfg(feature = "serde")]
1212
use serde::{Deserialize, Serialize};

0 commit comments

Comments
 (0)