about summary refs log tree commit diff
path: root/library/std/src/sys_common
diff options
context:
space:
mode:
authorDavid Thomas <david2005thomas@gmail.com>2024-02-17 13:36:00 +0000
committerGnomedDev <david2005thomas@gmail.com>2024-02-18 17:58:52 +0000
commitdbb15fb45d45615b443f3fbf009af047719005ff (patch)
tree97756ecf35c8e82c412d3e7e6de9d63f1a4d5da6 /library/std/src/sys_common
parent04334394337e19e632eba32ae1dfd554f5831b42 (diff)
downloadrust-dbb15fb45d45615b443f3fbf009af047719005ff.tar.gz
rust-dbb15fb45d45615b443f3fbf009af047719005ff.zip
Dyn erase at call site
Diffstat (limited to 'library/std/src/sys_common')
-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();