Skip to content

Commit f748c43

Browse files
committed
Fix compilation with default features
1 parent 8ce9c83 commit f748c43

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

wgpu-core/src/binding_model.rs

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use arrayvec::ArrayVec;
2323

2424
#[cfg(feature = "serde")]
2525
use serde::Deserialize;
26+
#[cfg(feature = "serde")]
2627
use serde::Serialize;
2728

2829
use std::{borrow::Cow, ops::Range, sync::Arc};

wgpu-types/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#[cfg(any(feature = "serde", test))]
1313
use serde::Deserialize;
14+
#[cfg(any(feature = "serde", test))]
1415
use serde::Serialize;
1516
use std::hash::{Hash, Hasher};
1617
use std::path::PathBuf;

0 commit comments

Comments
 (0)