1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-22 17:44: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_rules! deck {
[$($cd:literal: $qty:literal),* $(,)?] => {
crate::data::deckcode::deck::Deck {
$crate::data::deckcode::deck::Deck {
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),)*
])
}
}