Skip to content

Commit

Permalink
fix missed feature-gate
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook committed May 30, 2024
1 parent 149506a commit f3f1cc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions support/build/src/metadata/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,16 +334,16 @@ impl AssetsRules {

/// Actually anti-compat, just validation and proper error message.
mod compat {
#![cfg(feature = "serde")]
use super::{AssetsOptions, Deserialize, Deserializer, HashMap, RuleValue};

#[derive(Debug, Clone, PartialEq)]
#[cfg_attr(feature = "serde", derive(Deserialize))]
#[cfg_attr(feature = "serde", serde(untagged, deny_unknown_fields))]
#[derive(Debug, Clone, PartialEq, Deserialize)]
#[serde(untagged, deny_unknown_fields)]
enum AssetsRules {
Normal(super::AssetsRules),
LegacyMap {
options: AssetsOptions,
#[cfg_attr(feature = "serde", serde(flatten))]
#[serde(flatten)]
rules: HashMap<String, RuleValue>,
},
}
Expand Down

0 comments on commit f3f1cc2

Please sign in to comment.