Remove the MessagePayload trait, it was a bad idea.

This commit is contained in:
Emmanuel Gil Peyrot 2017-04-20 00:14:47 +01:00
commit a9993b1281
3 changed files with 8 additions and 11 deletions

View file

@ -1,7 +1,6 @@
use minidom::Element;
use error::Error;
use super::MessagePayload;
use ns::CHATSTATES_NS;
@ -14,8 +13,6 @@ pub enum ChatState {
Paused,
}
impl MessagePayload for ChatState {}
pub fn parse_chatstate(root: &Element) -> Result<ChatState, Error> {
for _ in root.children() {
return Err(Error::ParseError("Unknown child in chatstate element."));