Remove the MessagePayload trait, it was a bad idea.
This commit is contained in:
parent
b8b0494c19
commit
a9993b1281
3 changed files with 8 additions and 11 deletions
|
|
@ -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."));
|
||||
|
|
|
|||
Loading…
Reference in a new issue