From 78a208b005585794f95b1227d077c2aec81ebe64 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Thu, 2 May 2024 16:08:54 -0400 Subject: [PATCH] chore: satisfy `clippy::empty_docs` --- d3d12/src/resource.rs | 1 - naga/src/lib.rs | 4 ---- wgpu-types/src/lib.rs | 4 ++-- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/d3d12/src/resource.rs b/d3d12/src/resource.rs index bdc669dd3..def01f414 100644 --- a/d3d12/src/resource.rs +++ b/d3d12/src/resource.rs @@ -14,7 +14,6 @@ pub struct DiscardRegion<'a> { pub type Resource = ComPtr; impl Resource { - /// pub fn map( &self, subresource: Subresource, diff --git a/naga/src/lib.rs b/naga/src/lib.rs index 24e1b02c7..746e407fa 100644 --- a/naga/src/lib.rs +++ b/naga/src/lib.rs @@ -1273,13 +1273,9 @@ pub enum ImageQuery { #[cfg_attr(feature = "deserialize", derive(Deserialize))] #[cfg_attr(feature = "arbitrary", derive(Arbitrary))] pub enum SwizzleComponent { - /// X = 0, - /// Y = 1, - /// Z = 2, - /// W = 3, } diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 7049cd3a8..92d5b68d4 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -5493,9 +5493,9 @@ pub enum TextureDimension { #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))] pub struct Origin2d { - /// + #[allow(missing_docs)] pub x: u32, - /// + #[allow(missing_docs)] pub y: u32, }