Skip to content

Commit 454bdd0

Browse files
committed
fix: Simplify server initialization by combining method calls in IPC server example
1 parent 64d3146 commit 454bdd0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/stream_server.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ async fn main() -> Result<()> {
138138

139139
// Create server
140140
#[cfg(unix)]
141-
let mut server = IpcStreamServer::with_config(&ipc_path, config)?
142-
.with_listener_mode(0o666);
141+
let mut server = IpcStreamServer::with_config(&ipc_path, config)?.with_listener_mode(0o666);
143142

144143
#[cfg(windows)]
145144
let mut server = IpcStreamServer::with_config(&ipc_path, config)?

0 commit comments

Comments
 (0)