mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
Better without clones
This commit is contained in:
parent
072cba6a3e
commit
10ab104ea0
1 changed files with 3 additions and 3 deletions
|
@ -206,8 +206,8 @@ impl Jid {
|
|||
/// assert_eq!(jid.resource, None);
|
||||
pub fn get_bare(self) -> Jid {
|
||||
Jid {
|
||||
node: self.node.clone(),
|
||||
domain: self.domain.clone(),
|
||||
node: self.node,
|
||||
domain: self.domain,
|
||||
resource: None,
|
||||
}
|
||||
}
|
||||
|
@ -253,7 +253,7 @@ impl Jid {
|
|||
pub fn get_domain(self) -> Jid {
|
||||
Jid {
|
||||
node: None,
|
||||
domain: self.domain.clone(),
|
||||
domain: self.domain,
|
||||
resource: None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue