Skip to content

Commit

Permalink
last cleanup, consolidate imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Durrenberger committed Dec 4, 2024
1 parent 214e5cb commit fea4dfb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/wdk-alloc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub use kernel_mode::*;
mod kernel_mode {

use core::alloc::{GlobalAlloc, Layout};

use wdk_sys::{
ntddk::{ExAllocatePool2, ExFreePool},
POOL_FLAG_NON_PAGED,
Expand Down
4 changes: 1 addition & 3 deletions crates/wdk-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@ mod utils;

mod bindgen;

use std::{env, path::PathBuf};
use std::{env, path::PathBuf, sync::LazyLock};

use cargo_metadata::MetadataCommand;
use serde::{Deserialize, Serialize};
use thiserror::Error;
use utils::PathExt;

use std::sync::LazyLock;

/// Configuration parameters for a build dependent on the WDK
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub struct Config {
Expand Down
1 change: 1 addition & 0 deletions crates/wdk-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ use syn::{
TypeBareFn,
TypePath,
};

/// A procedural macro that allows WDF functions to be called by name.
///
/// This macro is only intended to be used in the `wdk-sys` crate. Users wanting
Expand Down
3 changes: 1 addition & 2 deletions tests/wdk-macros-tests/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (c) Microsoft Corporation
// License: MIT OR Apache-2.0

use std::path::PathBuf;
use std::sync::LazyLock;
use std::{path::PathBuf, sync::LazyLock};
use fs4::FileExt;
pub use macrotest::{expand, expand_args};
pub use owo_colors::OwoColorize;
Expand Down

0 comments on commit fea4dfb

Please sign in to comment.