Skip to content

Commit 7255941

Browse files
committed
style(sandbox): satisfy rustfmt and clippy doc_markdown
Match the pinned rustfmt (Rust 1.95.0) line-wrapping for the write_task_output call, and backtick `legacy_read_only` in the qualification-report doc comment so clippy::doc_markdown (-D warnings) passes. Signed-off-by: Akram <akram.benaissi@gmail.com>
1 parent 285085e commit 7255941

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

crates/openshell-sandbox/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ struct QualificationReport {
146146
tcp_allow_round_trip: bool,
147147
tcp_deny_round_trip: bool,
148148
wait_killable_recv: bool,
149-
/// Selected seccomp listener cancellation mode: "killable" (>= 5.19) or
150-
/// "legacy_read_only" (< 5.19, broker output writes disabled).
149+
/// Selected seccomp listener cancellation mode: `killable` (>= 5.19) or
150+
/// `legacy_read_only` (< 5.19, broker output writes disabled).
151151
seccomp_listener_mode: &'static str,
152152
/// Whether the broker disables task-memory output writes (legacy mode).
153153
task_memory_writes_disabled: bool,

crates/openshell-sandbox/src/network_broker.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1698,7 +1698,12 @@ fn write_socket_addr(
16981698
if copied != 0 {
16991699
listener.write_task_output(notification_id, tid, address, &bytes[..copied])?;
17001700
}
1701-
listener.write_task_output(notification_id, tid, length_address, &actual_length.to_ne_bytes())
1701+
listener.write_task_output(
1702+
notification_id,
1703+
tid,
1704+
length_address,
1705+
&actual_length.to_ne_bytes(),
1706+
)
17021707
}
17031708

17041709
fn sockaddr_bytes(address: SocketAddr) -> io::Result<(Vec<u8>, libc::socklen_t)> {

0 commit comments

Comments
 (0)