Fix build and compilation.
This commit is contained in:
parent
393402032c
commit
216f6f8389
4 changed files with 5 additions and 5 deletions
|
@ -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]
|
||||
|
|
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue