mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
Fix doctests
This commit is contained in:
parent
b69ecb31aa
commit
2f59ca4b56
1 changed files with 2 additions and 0 deletions
|
@ -204,6 +204,7 @@ impl Jid {
|
||||||
/// assert_eq!(jid.node, Some("node".to_owned()));
|
/// assert_eq!(jid.node, Some("node".to_owned()));
|
||||||
/// assert_eq!(jid.domain, "domain".to_owned());
|
/// assert_eq!(jid.domain, "domain".to_owned());
|
||||||
/// assert_eq!(jid.resource, None);
|
/// assert_eq!(jid.resource, None);
|
||||||
|
/// ```
|
||||||
pub fn into_bare_jid(self) -> Jid {
|
pub fn into_bare_jid(self) -> Jid {
|
||||||
Jid {
|
Jid {
|
||||||
node: self.node,
|
node: self.node,
|
||||||
|
@ -250,6 +251,7 @@ impl Jid {
|
||||||
/// assert_eq!(jid.node, None);
|
/// assert_eq!(jid.node, None);
|
||||||
/// assert_eq!(jid.domain, "domain".to_owned());
|
/// assert_eq!(jid.domain, "domain".to_owned());
|
||||||
/// assert_eq!(jid.resource, None);
|
/// assert_eq!(jid.resource, None);
|
||||||
|
/// ```
|
||||||
pub fn into_domain_jid(self) -> Jid {
|
pub fn into_domain_jid(self) -> Jid {
|
||||||
Jid {
|
Jid {
|
||||||
node: None,
|
node: None,
|
||||||
|
|
Loading…
Reference in a new issue