mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Move #[error] attributes after the corresponding #[derive]
This fixes Nightly warnings See https://github.com/rust-lang/rust/issues/79202
This commit is contained in:
@@ -2507,8 +2507,8 @@ impl<B: hal::Backend> crate::hub::Resource for Device<B> {
|
||||
}
|
||||
}
|
||||
|
||||
#[error("device is invalid")]
|
||||
#[derive(Clone, Debug, Error)]
|
||||
#[error("device is invalid")]
|
||||
pub struct InvalidDevice;
|
||||
|
||||
#[derive(Clone, Debug, Error)]
|
||||
|
||||
@@ -148,8 +148,8 @@ impl<B: hal::Backend> super::Device<B> {
|
||||
}
|
||||
}
|
||||
|
||||
#[error("queue is invalid")]
|
||||
#[derive(Clone, Debug, Error)]
|
||||
#[error("queue is invalid")]
|
||||
pub struct InvalidQueue;
|
||||
|
||||
#[derive(Clone, Debug, Error)]
|
||||
|
||||
@@ -557,8 +557,8 @@ impl<I: Clone> AdapterInputs<'_, I> {
|
||||
}
|
||||
}
|
||||
|
||||
#[error("adapter is invalid")]
|
||||
#[derive(Clone, Debug, Error)]
|
||||
#[error("adapter is invalid")]
|
||||
pub struct InvalidAdapter;
|
||||
|
||||
#[derive(Clone, Debug, Error)]
|
||||
|
||||
Reference in New Issue
Block a user