aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorthelearnerofcode <[email protected]>2017-11-07 14:51:57 -0800
committerthelearnerofcode <[email protected]>2017-11-07 14:51:57 -0800
commite5a6f3a8ed367bd3d780fd23a0a27f8a80567879 (patch)
tree9b51a6cd25ec63f8a0b2143827e675b04f9bb1af /src/utils
parentInto<String> -> Display (diff)
downloadserenity-e5a6f3a8ed367bd3d780fd23a0a27f8a80567879.tar.xz
serenity-e5a6f3a8ed367bd3d780fd23a0a27f8a80567879.zip
Add Debug derives to more public types
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/message_builder.rs10
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() }
}