Make all parsed types implement Clone.

This commit is contained in:
Emmanuel Gil Peyrot 2017-04-21 00:41:15 +01:00
commit 62d9385728
9 changed files with 21 additions and 21 deletions

View file

@ -6,7 +6,7 @@ use error::Error;
use ns;
#[derive(Debug)]
#[derive(Debug, Clone)]
pub enum Stanza {
Iq,
Message,
@ -32,7 +32,7 @@ impl FromStr for Stanza {
}
}
#[derive(Debug)]
#[derive(Debug, Clone)]
pub enum IBB {
Open { block_size: u16, sid: String, stanza: Stanza },
Data(u16, String, Vec<u8>),