From 51422ed792ec604a1359e0af5631ee85934968f5 Mon Sep 17 00:00:00 2001 From: arctic_hen7 Date: Mon, 24 Jan 2022 09:04:37 +1100 Subject: [PATCH] fix: added `Debug` for `TranslationArgs` --- packages/perseus/src/translator/dummy.rs | 1 + packages/perseus/src/translator/fluent.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/perseus/src/translator/dummy.rs b/packages/perseus/src/translator/dummy.rs index 38c762fb29..97dcdb4709 100644 --- a/packages/perseus/src/translator/dummy.rs +++ b/packages/perseus/src/translator/dummy.rs @@ -39,6 +39,7 @@ impl DummyTranslator { /// A useless pseudo-map. This is a workaround until conditional compilation of expressions is supported, which will simplify this /// system significantly. #[doc(hidden)] +#[derive(Debug)] pub struct TranslationArgs; impl TranslationArgs { /// Creates a new instance of this `struct`. diff --git a/packages/perseus/src/translator/fluent.rs b/packages/perseus/src/translator/fluent.rs index cf6514359f..b2c4da6f67 100644 --- a/packages/perseus/src/translator/fluent.rs +++ b/packages/perseus/src/translator/fluent.rs @@ -174,6 +174,7 @@ impl FluentTranslator { /// An alias for `FluentArgs`. This is a workaround until conditional compilation of expressions is supported, which will simplify this /// system significantly. #[doc(hidden)] +#[allow(missing_debug_implementations)] pub type TranslationArgs<'args> = FluentArgs<'args>; /// The internal Fluent backend for the `t!` macro.