Skip to content

Commit a8ab52c

Browse files
committed
cleanup imports
1 parent e9d0ae5 commit a8ab52c

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/windows/spawn.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,10 @@ use std::{
1818
},
1919
};
2020
use winapi::{
21-
shared::{minwindef::TRUE, winerror::ERROR_INSUFFICIENT_BUFFER},
21+
shared::minwindef::TRUE,
2222
um::{
23-
errhandlingapi::GetLastError,
2423
handleapi::INVALID_HANDLE_VALUE,
25-
minwinbase::SECURITY_ATTRIBUTES,
26-
processthreadsapi::{
27-
CreateProcessW, DeleteProcThreadAttributeList, InitializeProcThreadAttributeList,
28-
PROCESS_INFORMATION, PROC_THREAD_ATTRIBUTE_LIST,
29-
},
24+
processthreadsapi::{CreateProcessW, PROCESS_INFORMATION},
3025
winbase::{
3126
CreateFileMappingA, CREATE_UNICODE_ENVIRONMENT, EXTENDED_STARTUPINFO_PRESENT,
3227
STARTF_USESTDHANDLES, STARTUPINFOEXW,
@@ -162,7 +157,7 @@ pub(in crate::windows) fn spawn(
162157

163158
security_capabilities = sandbox.profile.get_security_capabilities();
164159

165-
proc_thread_attr_list.add_attr(
160+
proc_thread_attr_list.add_attr::<SECURITY_CAPABILITIES>(
166161
MAGIC_PROC_THREAD_ATTRIBUTE_SECURITY_CAPABILITIES,
167162
&mut security_capabilities,
168163
)?;

0 commit comments

Comments
 (0)