Skip to content

Commit

Permalink
Add support for DoublePlaceholder for databake (#4679)
Browse files Browse the repository at this point in the history
  • Loading branch information
younies committed Mar 12, 2024
1 parent a437cc6 commit 728eb44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/pattern/src/frontend/databake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use core::any::TypeId;

use crate::DoublePlaceholder;
use crate::SinglePlaceholder;

use super::*;
Expand All @@ -19,6 +20,8 @@ where
let store = self.store.bake(ctx);
let b = if TypeId::of::<B>() == TypeId::of::<SinglePlaceholder>() {
quote!(icu_pattern::SinglePlaceholder)
} else if TypeId::of::<B>() == TypeId::of::<DoublePlaceholder>() {
quote!(icu_pattern::DoublePlaceholder)
} else {
unreachable!("all impls of sealed trait PatternBackend should be covered")
};
Expand Down

0 comments on commit 728eb44

Please sign in to comment.