Skip to content

Commit

Permalink
string-interner: add missing serde impls for Symbol's
Browse files Browse the repository at this point in the history
  • Loading branch information
fogti committed May 8, 2022
1 parent 3bf3fd6 commit 7f047f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/string-interner/src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ macro_rules! gen_symbol_for {
) => {
$( #[$doc] )*
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
#[cfg_attr(feature = "serde", serde(transparent))]
pub struct $name {
value: $non_zero,
}
Expand Down

0 comments on commit 7f047f2

Please sign in to comment.