diff options
Diffstat (limited to '')
-rw-r--r-- | src/stanza/stream.rs | 1 | ||||
-rw-r--r-- | src/stanza/stream_error.rs | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/stanza/stream.rs b/src/stanza/stream.rs index 4f3c435..84d62d9 100644 --- a/src/stanza/stream.rs +++ b/src/stanza/stream.rs @@ -164,6 +164,7 @@ impl FromElement for Feature { } } +#[derive(Debug)] pub struct Error { error: StreamError, text: Option<Text>, diff --git a/src/stanza/stream_error.rs b/src/stanza/stream_error.rs index 37db8a1..5ae04a6 100644 --- a/src/stanza/stream_error.rs +++ b/src/stanza/stream_error.rs @@ -5,7 +5,7 @@ use peanuts::{ pub const XMLNS: &str = "urn:ietf:params:xml:ns:xmpp-streams"; -#[derive(Clone)] +#[derive(Clone, Debug)] pub enum Error { BadFormat, BadNamespacePrefix, @@ -110,7 +110,7 @@ impl IntoElement for Error { } } -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Text { text: Option<String>, lang: Option<String>, |