Skip to content

Commit dce3c4d

Browse files
committed
windows-sandbox: fix clippy on pipe ACL SDDL
1 parent 8286148 commit dce3c4d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

codex-rs/windows-sandbox-rs/src/elevated/runner_pipe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub fn create_named_pipe(name: &str, access: u32, sandbox_username: &str) -> io:
5353
.map_err(|err| io::Error::new(io::ErrorKind::PermissionDenied, err.to_string()))?;
5454
let sandbox_sid = string_from_sid_bytes(&sandbox_sid)
5555
.map_err(|err| io::Error::new(io::ErrorKind::PermissionDenied, err))?;
56-
let sddl = to_wide(&format!("D:(A;;GA;;;{sandbox_sid})"));
56+
let sddl = to_wide(format!("D:(A;;GA;;;{sandbox_sid})"));
5757
let mut sd: PSECURITY_DESCRIPTOR = ptr::null_mut();
5858
let ok = unsafe {
5959
ConvertStringSecurityDescriptorToSecurityDescriptorW(

codex-rs/windows-sandbox-rs/src/elevated_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ mod windows_impl {
127127

128128
/// Creates a named pipe whose DACL only allows the sandbox user to connect.
129129
fn create_named_pipe(name: &str, access: u32, sandbox_sid: &str) -> io::Result<HANDLE> {
130-
let sddl = to_wide(&format!("D:(A;;GA;;;{sandbox_sid})"));
130+
let sddl = to_wide(format!("D:(A;;GA;;;{sandbox_sid})"));
131131
let mut sd: PSECURITY_DESCRIPTOR = ptr::null_mut();
132132
let ok = unsafe {
133133
ConvertStringSecurityDescriptorToSecurityDescriptorW(

0 commit comments

Comments
 (0)