Skip to content

Commit d68a8d9

Browse files
committed
moves use ptr within from_abstract_namespace fn
1 parent 565e349 commit d68a8d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/os/unix/net/addr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::ffi::OsStr;
22
use crate::os::unix::ffi::OsStrExt;
33
use crate::path::Path;
44
use crate::sys::cvt;
5-
use crate::{ascii, fmt, io, iter, mem, ptr};
5+
use crate::{ascii, fmt, io, iter, mem};
66

77
// FIXME(#43348): Make libc adapt #[doc(cfg(...))] so we don't need these fake definitions here?
88
#[cfg(not(unix))]
@@ -285,7 +285,7 @@ impl SocketAddr {
285285
));
286286
}
287287

288-
ptr::copy_nonoverlapping(
288+
crate::ptr::copy_nonoverlapping(
289289
namespace.as_ptr(),
290290
addr.sun_path.as_mut_ptr().offset(1) as *mut u8,
291291
namespace.len(),

0 commit comments

Comments
 (0)