Skip to content

Commit

Permalink
Derive Clone for Variant
Browse files Browse the repository at this point in the history
  • Loading branch information
ohadravid committed Jan 28, 2025
1 parent 4b2529c commit 406e302
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wmi"
version = "0.14.4"
version = "0.14.5"
authors = ["Ohad Ravid <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/variant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use windows::Win32::Foundation::{VARIANT_FALSE, VARIANT_TRUE};
use windows::Win32::System::Variant::*;
use windows::Win32::System::Wmi::{self, IWbemClassObject, CIMTYPE_ENUMERATION};

#[derive(Debug, PartialEq, Serialize)]
#[derive(Debug, PartialEq, Serialize, Clone)]
#[serde(untagged)]
pub enum Variant {
Empty,
Expand Down Expand Up @@ -386,7 +386,7 @@ impl TryFrom<Variant> for () {
/// Used to retrive [`IWbemClassObject`][winapi::um::Wmi::IWbemClassObject]
///
#[repr(transparent)]
#[derive(Debug, PartialEq, Eq)]
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct IUnknownWrapper {
inner: IUnknown,
}
Expand Down

0 comments on commit 406e302

Please sign in to comment.