Skip to content

Commit

Permalink
Merge pull request wasmerio#186 from wasmerio/fix-wasm-common-no-serde
Browse files Browse the repository at this point in the history
fix: Make it work if `serde` is disabled
  • Loading branch information
syrusakbary authored Jul 23, 2020
2 parents 9cb6dbb + 0c02bab commit c9198f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/wasm-common/src/data_initializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ pub struct DataInitializer<'data> {

/// As `DataInitializer` but owning the data rather than
/// holding a reference to it
#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone)]
#[cfg_attr(feature = "enable-serde", derive(Serialize, Deserialize))]
pub struct OwnedDataInitializer {
/// The location where the initialization is to be performed.
pub location: DataInitializerLocation,
Expand Down

0 comments on commit c9198f3

Please sign in to comment.