]> git.proxmox.com Git - rustc.git/blobdiff - vendor/winapi/src/um/evntcons.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / vendor / winapi / src / um / evntcons.rs
index d27eaf3cdb3d5816cc3d35d0ede81c97f93f24c0..48d4d700d440f83fc8c6596016f805f17196e47b 100644 (file)
@@ -1,4 +1,3 @@
-// Copyright © 2017 winapi-rs developers
 // Licensed under the Apache License, Version 2.0
 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
@@ -9,7 +8,9 @@ use shared::evntprov::EVENT_DESCRIPTOR;
 use shared::evntrace::ETW_BUFFER_CONTEXT;
 use shared::guiddef::{GUID, LPGUID};
 use shared::minwindef::{PUCHAR, PULONG, PUSHORT, UCHAR, ULONG, USHORT};
-use um::winnt::{ANYSIZE_ARRAY, BOOLEAN, LARGE_INTEGER, PCSTR, PSECURITY_DESCRIPTOR, PSID, PVOID, ULONGLONG};
+use um::winnt::{
+    ANYSIZE_ARRAY, BOOLEAN, LARGE_INTEGER, PCSTR, PSECURITY_DESCRIPTOR, PSID, PVOID, ULONGLONG,
+};
 pub const EVENT_HEADER_EXT_TYPE_RELATED_ACTIVITYID: USHORT = 0x0001;
 pub const EVENT_HEADER_EXT_TYPE_SID: USHORT = 0x0002;
 pub const EVENT_HEADER_EXT_TYPE_TS_ID: USHORT = 0x0003;
@@ -178,7 +179,6 @@ pub unsafe fn EtwGetTraitFromProviderTraits(
     ProviderTraits: PVOID, TraitType: UCHAR, Trait: *mut PVOID, Size: PUSHORT,
 ) {
     use core::ptr::null_mut;
-
     let ByteCount = read_unaligned(ProviderTraits as *mut USHORT) as isize;
     let mut Ptr = ProviderTraits as PUCHAR;
     let PtrEnd = Ptr.offset(ByteCount);