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;