1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-23 01:54:22 +00:00

Fix bug in deck! where it was trying to access the caller crate

This commit is contained in:
Steffo 2022-10-18 21:11:35 +02:00
parent d879141da8
commit 1dfa9d97b7
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -484,9 +484,9 @@ pub type DeckEncodingResult<T> = Result<T, DeckEncodingError>;
#[macro_export] #[macro_export]
macro_rules! deck { macro_rules! deck {
[$($cd:literal: $qty:literal),* $(,)?] => { [$($cd:literal: $qty:literal),* $(,)?] => {
crate::data::deckcode::deck::Deck { $crate::data::deckcode::deck::Deck {
contents: std::collections::HashMap::from([ contents: std::collections::HashMap::from([
$((crate::data::setbundle::code::CardCode { full: $cd.to_string() }, $qty),)* $(($crate::data::setbundle::code::CardCode { full: $cd.to_string() }, $qty),)*
]) ])
} }
} }