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",
|
Cancel => "cancel",
|
||||||
Form => "form",
|
Form => "form",
|
||||||
Result_ => "result",
|
Result_ => "result",
|
||||||
|
@ -272,7 +272,7 @@ mod tests {
|
||||||
Error::ParseError(string) => string,
|
Error::ParseError(string) => string,
|
||||||
_ => panic!(),
|
_ => panic!(),
|
||||||
};
|
};
|
||||||
assert_eq!(message, "Unknown data form type.");
|
assert_eq!(message, "Unknown value for 'type' attribute.");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -181,6 +181,6 @@ mod tests {
|
||||||
Error::ParseError(string) => string,
|
Error::ParseError(string) => string,
|
||||||
_ => panic!(),
|
_ => 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,
|
Error::ParseError(string) => string,
|
||||||
_ => panic!(),
|
_ => panic!(),
|
||||||
};
|
};
|
||||||
assert_eq!(message, "Invalid 'stanza' attribute.");
|
assert_eq!(message, "Unknown value for 'stanza' attribute.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,7 +236,7 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_serialise() {
|
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 {
|
let message = Message {
|
||||||
from: None,
|
from: None,
|
||||||
to: None,
|
to: None,
|
||||||
|
|
Loading…
Reference in a new issue