Skip to content

Commit 57a415e

Browse files
committed
Reorder use statements and don't use crate::.
1 parent 1df2626 commit 57a415e

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

etw-reader/src/lib.rs

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,23 @@
1+
use fxhash::FxHasher;
2+
use memoffset::offset_of;
3+
pub use windows::core::GUID;
14
use windows::core::{h, HSTRING, PWSTR};
25
use windows::Win32::Foundation::{
36
GetLastError, ERROR_INSUFFICIENT_BUFFER, ERROR_MORE_DATA, MAX_PATH,
47
};
8+
use windows::Win32::System::Diagnostics::Etw;
59
use windows::Win32::System::Diagnostics::Etw::{
610
EnumerateTraceGuids, EnumerateTraceGuidsEx, TraceGuidQueryInfo, TraceGuidQueryList,
711
CONTROLTRACE_HANDLE, EVENT_TRACE_FLAG, TRACE_GUID_INFO, TRACE_GUID_PROPERTIES,
812
TRACE_PROVIDER_INSTANCE_INFO,
913
};
1014

11-
use crate::parser::{Parser, ParserError, TryParse};
12-
use crate::schema::SchemaLocator;
13-
use crate::tdh_types::{PrimitiveDesc, PropertyDesc, TdhInType};
14-
use crate::traits::EncodeUtf16;
15-
16-
#[macro_use]
17-
extern crate memoffset;
18-
1915
use std::borrow::Cow;
2016
use std::collections::HashMap;
2117
use std::hash::BuildHasherDefault;
2218
use std::mem;
2319
use std::path::Path;
2420

25-
use etw_types::EventRecord;
26-
use fxhash::FxHasher;
27-
use tdh_types::{Property, TdhOutType};
28-
use windows::Win32::System::Diagnostics::Etw;
29-
3021
// typedef ULONG64 TRACEHANDLE, *PTRACEHANDLE;
3122
pub(crate) type TraceHandle = u64;
3223
pub const INVALID_TRACE_HANDLE: TraceHandle = u64::MAX;
@@ -46,7 +37,12 @@ pub mod utils;
4637
//pub mod trace;
4738
//pub mod provider;
4839

49-
pub use windows::core::GUID;
40+
use etw_types::EventRecord;
41+
use parser::{Parser, ParserError, TryParse};
42+
use schema::SchemaLocator;
43+
use tdh_types::{PrimitiveDesc, PropertyDesc, TdhInType};
44+
use tdh_types::{Property, TdhOutType};
45+
use traits::EncodeUtf16;
5046

5147
pub type FastHashMap<K, V> = HashMap<K, V, BuildHasherDefault<FxHasher>>;
5248
#[repr(C)]

0 commit comments

Comments
 (0)