Skip to content

Commit

Permalink
refactor: 🔨 Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
AntwortEinesLebens committed Jan 17, 2025
1 parent 271d68a commit c1639c3
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub mod traces;

use crate::commands::{generate::Generate, traces::Traces};
use clap::{Parser, Subcommand};
use std::{error::Error, process::ExitCode};
use std::process::ExitCode;

#[derive(Parser)]
#[clap(author, version)]
Expand Down
2 changes: 1 addition & 1 deletion src/commands/traces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::commands::{
};
use clap::{Args, Subcommand};
use serde::Deserialize;
use std::{error::Error, process::ExitCode};
use std::process::ExitCode;

pub mod drivers;
pub mod processes;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/traces/drivers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use crate::commands::{traces::drivers::byovd::Byovd, Runnable};
use clap::{Args, Subcommand};
use serde::Deserialize;
use std::{error::Error, process::ExitCode};
use std::process::ExitCode;

pub mod byovd;

Expand Down
12 changes: 4 additions & 8 deletions src/commands/traces/drivers/byovd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
use crate::{commands::Runnable, windows::users::is_administrator};
use clap::Parser;
use serde::Deserialize;
use std::{error::Error, path::PathBuf, process::ExitCode};
use std::{path::PathBuf, process::ExitCode};
use windows::{
core::{Owned, HSTRING, PCWSTR},
Win32::{
Foundation::GENERIC_READ,
System::Services::{
CreateServiceW, OpenSCManagerW, OpenServiceW, StartServiceW, SC_HANDLE,
SC_MANAGER_ALL_ACCESS, SC_MANAGER_CREATE_SERVICE, SERVICE_AUTO_START,
SERVICE_ERROR_IGNORE, SERVICE_KERNEL_DRIVER,
},
Win32::System::Services::{
CreateServiceW, OpenSCManagerW, StartServiceW, SC_HANDLE, SC_MANAGER_ALL_ACCESS,
SC_MANAGER_CREATE_SERVICE, SERVICE_AUTO_START, SERVICE_ERROR_IGNORE, SERVICE_KERNEL_DRIVER,
},
};

Expand Down
2 changes: 1 addition & 1 deletion src/commands/traces/processes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use crate::commands::{traces::processes::spoofing::Spoofing, Runnable};
use clap::{Args, Subcommand};
use serde::Deserialize;
use std::{error::Error, process::ExitCode};
use std::process::ExitCode;

pub mod spoofing;

Expand Down
4 changes: 2 additions & 2 deletions src/commands/traces/processes/spoofing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use crate::{commands::Runnable, windows::processes::get_pid};
use clap::Parser;
use serde::Deserialize;
use std::{
error::Error, ffi::OsString, iter::once, mem::size_of, os::windows::ffi::OsStrExt,
path::PathBuf, process::ExitCode,
ffi::OsString, iter::once, mem::size_of, os::windows::ffi::OsStrExt, path::PathBuf,
process::ExitCode,
};
use windows::{
core::{Owned, Result as WindowsResult, PWSTR},
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mod windows;

use clap::Parser;
use commands::{Arguments, Runnable};
use std::{error::Error, process::ExitCode};
use std::process::ExitCode;

fn main() -> ExitCode {
Arguments::parse().run()
Expand Down

0 comments on commit c1639c3

Please sign in to comment.