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"), } }