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:
Aaron Hill
2021-02-25 15:39:43 -05:00
parent ce4668a7ac
commit 12b086d92d
3 changed files with 3 additions and 3 deletions

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]