about summary refs log tree commit diff
path: root/library/std/src/sys_common/net.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-19 06:59:32 +0000
committerbors <bors@rust-lang.org>2024-02-19 06:59:32 +0000
commit010f029c905ffeb01ad88288b2cf50efe65b23ae (patch)
treecf3e5436c033a6b38daa21eb498b7f53d417936c /library/std/src/sys_common/net.rs
parent90fccaad801a929fc482dbbeca0231aa197de7c7 (diff)
parente118c3e8af2ee5c0d20d21e8bf08c1a254a317fb (diff)
Auto merge of #3306 - rust-lang:rustup-2024-02-19, r=RalfJung
Automatic Rustup
Diffstat (limited to 'library/std/src/sys_common/net.rs')
-rw-r--r--library/std/src/sys_common/net.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys_common/net.rs b/library/std/src/sys_common/net.rs
index 8712bd2eca7..de7d31baaaf 100644
--- a/library/std/src/sys_common/net.rs
+++ b/library/std/src/sys_common/net.rs
@@ -199,7 +199,7 @@ impl<'a> TryFrom<(&'a str, u16)> for LookupHost {
     fn try_from((host, port): (&'a str, u16)) -> io::Result<LookupHost> {
         init();
 
-        run_with_cstr(host.as_bytes(), |c_host| {
+        run_with_cstr(host.as_bytes(), &|c_host| {
             let mut hints: c::addrinfo = unsafe { mem::zeroed() };
             hints.ai_socktype = c::SOCK_STREAM;
             let mut res = ptr::null_mut();