Skip to content

Commit 7c0532a

Browse files
committed
fmt: fix cargo fmt violations
Signed-off-by: danbugs <danilochiarlone@gmail.com>
1 parent 802fdfc commit 7c0532a

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

host/src/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,10 @@ fn register_net_tools(
11421142
Some(Protocol::from(protocol))
11431143
};
11441144
let sock = Socket::new(domain, stype, proto)?;
1145-
let fd = t.lock().unwrap().insert(HostSocket::Socket(sock, sock_type));
1145+
let fd = t
1146+
.lock()
1147+
.unwrap()
1148+
.insert(HostSocket::Socket(sock, sock_type));
11461149
Ok(json!({ "fd": fd }))
11471150
});
11481151

@@ -1200,7 +1203,10 @@ fn register_net_tools(
12001203
(s, p, st)
12011204
};
12021205
let peer_addr: Option<SocketAddr> = peer.as_socket();
1203-
let new_fd = t.lock().unwrap().insert(HostSocket::Socket(new_sock, parent_type));
1206+
let new_fd = t
1207+
.lock()
1208+
.unwrap()
1209+
.insert(HostSocket::Socket(new_sock, parent_type));
12041210
let mut resp = json!({ "fd": new_fd });
12051211
if let Some(pa) = peer_addr {
12061212
resp["addr"] = json!(pa.ip().to_string());

0 commit comments

Comments
 (0)