File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ type HalInstance<A> = <A as hal::Api>::Instance;
23
23
type HalSurface < A > = <A as hal:: Api >:: Surface ;
24
24
25
25
#[ derive( Clone , Debug , Error ) ]
26
+ #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
26
27
#[ error( "Limit '{name}' value {requested} is better than allowed {allowed}" ) ]
27
28
pub struct FailedLimit {
28
29
name : & ' static str ,
@@ -391,6 +392,8 @@ pub enum GetSurfaceSupportError {
391
392
}
392
393
393
394
#[ derive( Clone , Debug , Error ) ]
395
+ #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
396
+ #[ cfg_attr( feature = "serde" , serde( bound( deserialize = "'de: 'static" ) ) ) ]
394
397
/// Error when requesting a device from the adaptor
395
398
#[ non_exhaustive]
396
399
pub enum RequestDeviceError {
You can’t perform that action at this time.
0 commit comments