diff options
Diffstat (limited to 'src/utils/message_builder.rs')
| -rw-r--r-- | src/utils/message_builder.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils/message_builder.rs b/src/utils/message_builder.rs index 284ba1e..c00cd0a 100644 --- a/src/utils/message_builder.rs +++ b/src/utils/message_builder.rs @@ -767,7 +767,7 @@ pub enum ContentModifier { } /// Describes formatting on string content -#[derive(Default, Clone)] +#[derive(Debug, Default, Clone)] pub struct Content { pub italic: bool, pub bold: bool, @@ -912,15 +912,15 @@ impl From<ContentModifier> for Content { mod private { use super::{Content, ContentModifier}; use std::fmt; - + pub trait A {} - + impl A for ContentModifier {} impl A for Content {} impl<T: fmt::Display> A for T {} } - + /// This trait only exists as way to bypass the shouting of the compiler. Specifically "conflicting /// implementations in core" and alike. /// However is not meant to be used outside. @@ -940,7 +940,7 @@ impl<T: fmt::Display> I for T { } } } - + impl I for ContentModifier { fn into(self) -> Content { self.to_content() } } |