Skip to content

Commit 12b086d

Browse files
committed
Move #[error] attributes after the corresponding #[derive]
This fixes Nightly warnings See rust-lang/rust#79202
1 parent ce4668a commit 12b086d

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)