From 347e81b3cc5563bdee0d9f15a3489cc571c3e0f1 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 16 Mar 2023 11:23:03 +0800 Subject: [PATCH] chore(napi): upgrade bitflags to v2 (#1518) --- crates/napi/Cargo.toml | 2 +- crates/napi/src/js_values/object_property.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/napi/Cargo.toml b/crates/napi/Cargo.toml index 05739220..37a77ad0 100644 --- a/crates/napi/Cargo.toml +++ b/crates/napi/Cargo.toml @@ -51,7 +51,7 @@ tokio_time = ["tokio/time"] [dependencies] ctor = "0.1" once_cell = "1.16" -bitflags = "1" +bitflags = "2" [dependencies.anyhow] version = "1" diff --git a/crates/napi/src/js_values/object_property.rs b/crates/napi/src/js_values/object_property.rs index 4a777694..b558d409 100644 --- a/crates/napi/src/js_values/object_property.rs +++ b/crates/napi/src/js_values/object_property.rs @@ -32,6 +32,7 @@ impl Default for Property { } bitflags! { + #[derive(Debug, Copy, Clone)] pub struct PropertyAttributes: i32 { const Default = sys::PropertyAttributes::default; const Writable = sys::PropertyAttributes::writable;