Fix build and compilation.

This commit is contained in:
Emmanuel Gil Peyrot 2017-06-14 01:57:02 +01:00
parent 393402032c
commit 216f6f8389
4 changed files with 5 additions and 5 deletions

View file

@ -86,7 +86,7 @@ impl IntoElements for Field {
}
}
generate_attribute!(Subscription, "subscription", {
generate_attribute!(DataFormType, "type", {
Cancel => "cancel",
Form => "form",
Result_ => "result",
@ -272,7 +272,7 @@ mod tests {
Error::ParseError(string) => string,
_ => panic!(),
};
assert_eq!(message, "Unknown data form type.");
assert_eq!(message, "Unknown value for 'type' attribute.");
}
#[test]

View file

@ -181,6 +181,6 @@ mod tests {
Error::ParseError(string) => string,
_ => panic!(),
};
assert_eq!(message, "Invalid 'stanza' attribute.");
assert_eq!(message, "Unknown value for 'stanza' attribute.");
}
}

View file

@ -107,6 +107,6 @@ mod tests {
Error::ParseError(string) => string,
_ => panic!(),
};
assert_eq!(message, "Invalid 'stanza' attribute.");
assert_eq!(message, "Unknown value for 'stanza' attribute.");
}
}

View file

@ -236,7 +236,7 @@ mod tests {
#[test]
fn test_serialise() {
let elem: Element = "<message xmlns='jabber:client' type='normal'/>".parse().unwrap();
let elem: Element = "<message xmlns='jabber:client'/>".parse().unwrap();
let message = Message {
from: None,
to: None,