Skip to content

Commit

Permalink
Merge #1237
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bors[bot] and Aaron1011 authored Feb 26, 2021
2 parents 39aa01d + 12b086d commit 29058e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wgpu-core/src/device/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion wgpu-core/src/device/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion wgpu-core/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 29058e0

Please sign in to comment.