Use option for pubsub#owner delete redirect element
This commit is contained in:
parent
cc4e0c247e
commit
a5a24a243d
1 changed files with 3 additions and 3 deletions
|
|
@ -69,7 +69,7 @@ generate_element!(
|
||||||
],
|
],
|
||||||
children: [
|
children: [
|
||||||
/// Redirection to replace the deleted node.
|
/// Redirection to replace the deleted node.
|
||||||
redirect: Vec<Redirect> = ("redirect", PUBSUB_OWNER) => Redirect
|
redirect: Option<Redirect> = ("redirect", PUBSUB_OWNER) => Redirect
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -300,9 +300,9 @@ mod tests {
|
||||||
|
|
||||||
let pubsub = PubSubOwner::Delete(Delete {
|
let pubsub = PubSubOwner::Delete(Delete {
|
||||||
node: NodeName(String::from("foo")),
|
node: NodeName(String::from("foo")),
|
||||||
redirect: vec![Redirect {
|
redirect: Some(Redirect {
|
||||||
uri: String::from("xmpp:hamlet@denmark.lit?;node=blog"),
|
uri: String::from("xmpp:hamlet@denmark.lit?;node=blog"),
|
||||||
}],
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
let elem2 = Element::from(pubsub);
|
let elem2 = Element::from(pubsub);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue