Skip to content

Commit f7232f1

Browse files
committed
cargo fmt
1 parent c35ebb1 commit f7232f1

5 files changed

Lines changed: 12 additions & 11 deletions

File tree

crates/fspy/src/windows/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ use std::{
1010

1111
use bincode::borrow_decode_from_slice;
1212
use const_format::formatcp;
13+
use fspy_detours_sys::{DetourCopyPayloadToProcess, DetourUpdateProcessWithDll};
1314
use fspy_shared::{
1415
ipc::{BINCODE_CONFIG, PathAccess},
1516
windows::{PAYLOAD_ID, Payload},
1617
};
1718
use futures_util::FutureExt;
18-
use fspy_detours_sys::{DetourCopyPayloadToProcess, DetourUpdateProcessWithDll};
1919
use tokio::{
2020
io::AsyncReadExt,
2121
net::windows::named_pipe::{PipeMode, ServerOptions},

crates/fspy_detours_sys/src/generated_bindings.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
use winapi::shared::minwindef::*;
2-
use winapi::um::winnt::*;
3-
use winapi::um::winnt::{INT};
4-
use winapi::um::minwinbase::*;
5-
use winapi::um::processthreadsapi::*;
6-
use winapi::shared::guiddef::*;
7-
use winapi::shared::windef::*;
1+
use winapi::{
2+
shared::{guiddef::*, minwindef::*, windef::*},
3+
um::{
4+
minwinbase::*,
5+
processthreadsapi::*,
6+
winnt::{INT, *},
7+
},
8+
};
89

910
#[repr(C)]
1011
#[derive(Debug, Copy, Clone)]

crates/fspy_preload_windows/src/windows/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ use std::{
77

88
use bincode::{borrow_decode_from_slice, encode_into_std_write, encode_to_vec};
99
use dashmap::DashSet;
10+
use fspy_detours_sys::DetourCopyPayloadToProcess;
1011
use fspy_shared::{
1112
ipc::{BINCODE_CONFIG, PathAccess},
1213
windows::{PAYLOAD_ID, Payload},
1314
};
14-
use fspy_detours_sys::DetourCopyPayloadToProcess;
1515
use ntapi::ntobapi::DUPLICATE_SAME_ACCESS;
1616
use smallvec::SmallVec;
1717
use winapi::{

crates/fspy_preload_windows/src/windows/detours/create_process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::ffi::CStr;
22

3-
use fspy_shared::ipc::{AccessMode, NativeStr, PathAccess};
43
use fspy_detours_sys::{DetourCreateProcessWithDllExA, DetourCreateProcessWithDllExW};
4+
use fspy_shared::ipc::{AccessMode, NativeStr, PathAccess};
55
use widestring::U16CStr;
66
use winapi::{
77
shared::{

crates/fspy_preload_windows/src/windows/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ use std::slice;
88

99
use client::{Client, set_global_client};
1010
use detours::DETOURS;
11-
use fspy_shared::windows::PAYLOAD_ID;
1211
use fspy_detours_sys::{
1312
DetourFindPayloadEx, DetourIsHelperProcess, DetourRestoreAfterWith, DetourTransactionBegin,
1413
DetourTransactionCommit, DetourUpdateThread,
1514
};
15+
use fspy_shared::windows::PAYLOAD_ID;
1616
use winapi::{
1717
shared::minwindef::{BOOL, DWORD, FALSE, HINSTANCE, TRUE},
1818
um::{

0 commit comments

Comments
 (0)