From 131e978a2262ceb717837fc71311ea4aeb4ef4fb Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Tue, 3 Dec 2024 21:12:33 +0000 Subject: [PATCH] Cargo fmt --- crates/upnp-serve/src/ssdp.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/crates/upnp-serve/src/ssdp.rs b/crates/upnp-serve/src/ssdp.rs index d3fc29b..06ebfa3 100644 --- a/crates/upnp-serve/src/ssdp.rs +++ b/crates/upnp-serve/src/ssdp.rs @@ -80,13 +80,11 @@ pub fn try_parse_ssdp<'a, 'h>( } match (host, man, st) { - (Some(host), Some(man), Some(st)) => { - Ok(SsdpMessage::MSearch(SsdpMSearchRequest { - host: BStr::new(host), - man: BStr::new(man), - st: BStr::new(st), - })) - } + (Some(host), Some(man), Some(st)) => Ok(SsdpMessage::MSearch(SsdpMSearchRequest { + host: BStr::new(host), + man: BStr::new(man), + st: BStr::new(st), + })), _ => bail!("not all of host, man and st are set"), } }