summaryrefslogtreecommitdiff
path: root/runtime/ops/runtime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ops/runtime.rs')
-rw-r--r--runtime/ops/runtime.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/runtime/ops/runtime.rs b/runtime/ops/runtime.rs
index b97741acc..70814e3b8 100644
--- a/runtime/ops/runtime.rs
+++ b/runtime/ops/runtime.rs
@@ -44,12 +44,14 @@ pub fn ppid() -> i64 {
// - MIT license
use std::mem;
use winapi::shared::minwindef::DWORD;
- use winapi::um::handleapi::{CloseHandle, INVALID_HANDLE_VALUE};
+ use winapi::um::handleapi::CloseHandle;
+ use winapi::um::handleapi::INVALID_HANDLE_VALUE;
use winapi::um::processthreadsapi::GetCurrentProcessId;
- use winapi::um::tlhelp32::{
- CreateToolhelp32Snapshot, Process32First, Process32Next, PROCESSENTRY32,
- TH32CS_SNAPPROCESS,
- };
+ use winapi::um::tlhelp32::CreateToolhelp32Snapshot;
+ use winapi::um::tlhelp32::Process32First;
+ use winapi::um::tlhelp32::Process32Next;
+ use winapi::um::tlhelp32::PROCESSENTRY32;
+ use winapi::um::tlhelp32::TH32CS_SNAPPROCESS;
// SAFETY: winapi calls
unsafe {
// Take a snapshot of system processes, one of which is ours