Skip to content

Commit d03b7e2

Browse files
sagudevcwfitzgerald
authored andcommitted
Make RequestAdapterError (de)serializable
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
1 parent 7a73c75 commit d03b7e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wgpu-core/src/instance.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ impl<M: Marker> AdapterInputs<'_, M> {
438438
pub struct InvalidAdapter;
439439

440440
#[derive(Clone, Debug, Error)]
441+
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
441442
#[non_exhaustive]
442443
pub enum RequestAdapterError {
443444
#[error("No suitable adapter found")]

0 commit comments

Comments
 (0)