Cargo fmt
This commit is contained in:
parent
1fb3d7cf55
commit
131e978a22
1 changed files with 5 additions and 7 deletions
|
|
@ -80,13 +80,11 @@ pub fn try_parse_ssdp<'a, 'h>(
|
||||||
}
|
}
|
||||||
|
|
||||||
match (host, man, st) {
|
match (host, man, st) {
|
||||||
(Some(host), Some(man), Some(st)) => {
|
(Some(host), Some(man), Some(st)) => Ok(SsdpMessage::MSearch(SsdpMSearchRequest {
|
||||||
Ok(SsdpMessage::MSearch(SsdpMSearchRequest {
|
host: BStr::new(host),
|
||||||
host: BStr::new(host),
|
man: BStr::new(man),
|
||||||
man: BStr::new(man),
|
st: BStr::new(st),
|
||||||
st: BStr::new(st),
|
})),
|
||||||
}))
|
|
||||||
}
|
|
||||||
_ => bail!("not all of host, man and st are set"),
|
_ => bail!("not all of host, man and st are set"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue