Skip to content

Commit f80f2c7

Browse files
committed
Explain platform-dependent socket address fallibility
Keep Unix decoding errors propagated without splitting shared socket callers solely for the Windows lint. Assisted-by: OpenAI Codex:model version not exposed
1 parent 5c6df87 commit f80f2c7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎crates/stdlib/src/socket.rs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3174,6 +3174,13 @@ mod _socket {
31743174
})
31753175
}
31763176

3177+
#[cfg_attr(
3178+
not(unix),
3179+
expect(
3180+
clippy::unnecessary_wraps,
3181+
reason = "Unix filesystem decoding is fallible; keep one return type for shared socket callers"
3182+
)
3183+
)]
31773184
fn get_addr_tuple(
31783185
addr: &host_socket::raw::SockAddr,
31793186
proto: i32,

0 commit comments

Comments
 (0)