Skip to content

Commit 29058e0

Browse files
bors[bot]Aaron1011
andauthored
Merge #1237
1237: Move `#[error]` attributes after the corresponding `#[derive]` r=kvark a=Aaron1011 **Connections** See rust-lang/rust#79202 **Description** Fixes Nightly future-incompat warnings **Testing** There are no behavior changes intended. Co-authored-by: Aaron Hill <[email protected]>
2 parents 39aa01d + 12b086d commit 29058e0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

wgpu-core/src/device/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2507,8 +2507,8 @@ impl<B: hal::Backend> crate::hub::Resource for Device<B> {
25072507
}
25082508
}
25092509

2510-
#[error("device is invalid")]
25112510
#[derive(Clone, Debug, Error)]
2511+
#[error("device is invalid")]
25122512
pub struct InvalidDevice;
25132513

25142514
#[derive(Clone, Debug, Error)]

wgpu-core/src/device/queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ impl<B: hal::Backend> super::Device<B> {
148148
}
149149
}
150150

151-
#[error("queue is invalid")]
152151
#[derive(Clone, Debug, Error)]
152+
#[error("queue is invalid")]
153153
pub struct InvalidQueue;
154154

155155
#[derive(Clone, Debug, Error)]

wgpu-core/src/instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,8 @@ impl<I: Clone> AdapterInputs<'_, I> {
557557
}
558558
}
559559

560-
#[error("adapter is invalid")]
561560
#[derive(Clone, Debug, Error)]
561+
#[error("adapter is invalid")]
562562
pub struct InvalidAdapter;
563563

564564
#[derive(Clone, Debug, Error)]

0 commit comments

Comments
 (0)