Skip to content

Commit

Permalink
fucking macos
Browse files Browse the repository at this point in the history
  • Loading branch information
kotauskas committed Apr 15, 2024
1 parent 911bc37 commit 762f65b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions src/os/unix/local_socket/name_type.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
use crate::local_socket::{Name, NameInner, NameType, NamespacedNameType, PathNameType};
use std::{
borrow::Cow,
ffi::OsStr,
io,
os::unix::ffi::{OsStrExt, OsStringExt},
path::Path,
};
use std::{borrow::Cow, ffi::OsStr, io, os::unix::prelude::*, path::Path};

tag_enum!(
/// [Mapping](NameType) that produces local socket names referring to Unix domain sockets bound to
Expand Down
2 changes: 1 addition & 1 deletion src/os/unix/uds_local_socket/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl traits::Listener for Listener {

let listener = c_wrappers::bind_and_listen_with_mode(
libc::SOCK_STREAM,
&name_to_addr(options.name.borrow(), true)?,
&dbg!(name_to_addr(options.name.borrow(), true))?,
nonblocking,
options.mode,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/os/unix/local_socket_fake_ns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn test_inner() -> TestResult {
.map(Arc::new)
});
let (name, _listener) = listen_and_pick_name(&mut namegen, |nm| {
ListenerOptions::new().name(nm.borrow()).create_sync()
dbg!(ListenerOptions::new().name(nm.borrow()).create_sync())
})?;
let name = Arc::try_unwrap(name).unwrap();
let _ = Stream::connect(name.borrow()).opname("client connect")?;
Expand Down

0 comments on commit 762f65b

Please sign in to comment.