Skip to content

Commit 595d1ad

Browse files
committed
fix(platform): resolve final lifetime errors in linux_ipc.rs
Fixed E0597 lifetime errors by using static string literals instead of format! strings in error handling: - Lines 78-80: bind socket error handling - Lines 97-99: connect socket error handling This should resolve the remaining compilation errors blocking CI. Refs #99
1 parent 5a8a5a1 commit 595d1ad

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

wrt-platform/src/linux_ipc.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ impl IpcChannel for LinuxDomainSocket {
7575

7676
// Create Unix domain socket listener
7777
let listener = UnixListener::bind(&socket_path)
78-
.map_err(|e| {
79-
let error_msg = format!("Failed to bind Unix socket: {}", e);
80-
Error::runtime_execution_error(&error_msg)
78+
.map_err(|_| {
79+
Error::runtime_execution_error("Failed to bind Unix socket")
8180
})?;
8281

8382
let mut socket = Self::new(socket_path);
@@ -95,9 +94,8 @@ impl IpcChannel for LinuxDomainSocket {
9594

9695
// Connect to existing socket
9796
let _stream = UnixStream::connect(&socket_path)
98-
.map_err(|e| {
99-
let error_msg = format!("Failed to connect to Unix socket: {}", e);
100-
Error::runtime_execution_error(&error_msg)
97+
.map_err(|_| {
98+
Error::runtime_execution_error("Failed to connect to Unix socket")
10199
})?;
102100

103101
Ok(Self::new(socket_path))

0 commit comments

Comments
 (0)