From c4ba53a39054b5a16278c61fec059b7233110eba Mon Sep 17 00:00:00 2001 From: jasper Date: Tue, 27 Aug 2024 22:12:05 +0200 Subject: [PATCH] fmt --- src/variant.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/variant.rs b/src/variant.rs index 4a7c652..2f9af39 100644 --- a/src/variant.rs +++ b/src/variant.rs @@ -171,7 +171,9 @@ impl Variant { VT_EMPTY => Variant::Empty, VT_NULL => Variant::Null, VT_UNKNOWN => { - let ptr = unsafe { IUnknown::from_raw_borrowed(&vt.Anonymous.Anonymous.Anonymous.punkVal) }; + let ptr = unsafe { + IUnknown::from_raw_borrowed(&vt.Anonymous.Anonymous.Anonymous.punkVal) + }; let ptr = ptr.cloned().ok_or(WMIError::NullPointerResult)?; Variant::Unknown(IUnknownWrapper::new(ptr)) }