Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jbg committed Sep 14, 2022
1 parent 640ed75 commit 5d308dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/xmpp/jid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ impl JidEndpointIdExt for BareJid {
}

fn endpoint_id_from_node(node: &str) -> Result<&str> {
let (before, _after) = node.split_once('-').context("invalid JID: invalid node format")?;
let (before, _after) = node
.split_once('-')
.context("invalid JID: invalid node format")?;
Ok(before)
}
}

0 comments on commit 5d308dc

Please sign in to comment.