From 1dfa9d97b79e75fdf92571131f7fbd70247b2c80 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 18 Oct 2022 21:11:35 +0200 Subject: [PATCH] Fix bug in `deck!` where it was trying to access the caller crate --- src/data/deckcode/deck.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/deckcode/deck.rs b/src/data/deckcode/deck.rs index 34f56aa..95ca339 100644 --- a/src/data/deckcode/deck.rs +++ b/src/data/deckcode/deck.rs @@ -484,9 +484,9 @@ pub type DeckEncodingResult = Result; #[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),)* ]) } }