From 3eb8a2ae11af95741516415fd6d7d8a74afaa9ce Mon Sep 17 00:00:00 2001 From: Link Mauve Date: Sat, 22 Nov 2025 22:47:20 +0100 Subject: [PATCH] xmpp-parsers: Run rustfmt Sorry, I made a mistake and pushed directly to main. T_T --- parsers/src/bob.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/parsers/src/bob.rs b/parsers/src/bob.rs index b29eb5f4a462a5ac4fa98c2d11b38fdc6ac58e4f..67594d8739556f809dec0c3de7f3282af730d24f 100644 --- a/parsers/src/bob.rs +++ b/parsers/src/bob.rs @@ -26,11 +26,15 @@ impl FromStr for ContentId { type Err = Error; fn from_str(s: &str) -> Result { - let (lhs, rhs) = s.split_once('@').ok_or(Error::Other("Missing @ in cid URI."))?; + let (lhs, rhs) = s + .split_once('@') + .ok_or(Error::Other("Missing @ in cid URI."))?; if rhs != "bob.xmpp.org" { return Err(Error::Other("Wrong domain for cid URI.")); } - let (algo, hex) = lhs.split_once('+').ok_or(Error::Other("Missing + in cid URI."))?; + let (algo, hex) = lhs + .split_once('+') + .ok_or(Error::Other("Missing + in cid URI."))?; let algo = match algo { "sha1" => Algo::Sha_1, "sha256" => Algo::Sha_256,