aboutsummaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorrustdesk <[email protected]>2023-01-07 00:50:48 +0800
committerrustdesk <[email protected]>2023-01-07 00:50:48 +0800
commit81d4fb6d6aaef31b7fcb608e04debfa0221eec2f (patch)
tree55472266fb724904c0382df7ef02d1fe1b53fcb7 /libs
parenta766aaf1651ebc6acd21c09e43288da0fac98026 (diff)
downloadrustdesk-server-81d4fb6d6aaef31b7fcb608e04debfa0221eec2f.tar.gz
rustdesk-server-81d4fb6d6aaef31b7fcb608e04debfa0221eec2f.zip
fmt
Diffstat (limited to 'libs')
-rw-r--r--libs/hbb_common/src/udp.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hbb_common/src/udp.rs b/libs/hbb_common/src/udp.rs
index 54ef8bd..bb0d071 100644
--- a/libs/hbb_common/src/udp.rs
+++ b/libs/hbb_common/src/udp.rs
@@ -54,7 +54,8 @@ impl FramedSocket {
reuse: bool,
buf_size: usize,
) -> ResultType<Self> {
- let addr = lookup_host(&addr).await?
+ let addr = lookup_host(&addr)
+ .await?
.next()
.context("could not resolve to any address")?;
Ok(Self::Direct(UdpFramed::new(