From 48fb2b275e7b2a433ef69cae15e525c06b60cd68 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 17 Oct 2022 09:32:27 +0000 Subject: [PATCH] In tests, reference to the crate with the `crate` keyword --- src/data/deckcode/deck.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data/deckcode/deck.rs b/src/data/deckcode/deck.rs index ebf445c..34f56aa 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),* $(,)?] => { - patched_porobot::data::deckcode::deck::Deck { + crate::data::deckcode::deck::Deck { contents: std::collections::HashMap::from([ - $((patched_porobot::data::setbundle::code::CardCode { full: $cd.to_string() }, $qty),)* + $((crate::data::setbundle::code::CardCode { full: $cd.to_string() }, $qty),)* ]) } } @@ -539,7 +539,7 @@ mod tests { ( $id:ident, $deck:expr ) => { #[test] fn $id() { - use patched_porobot::data::deckcode::deck::Deck; + use crate::data::deckcode::deck::Deck; let deck1 = $deck; let code = deck1 .to_code(DeckCodeFormat::F1)