chore(napi): upgrade bitflags to v2 (#1518)

This commit is contained in:
LongYinan 2023-03-16 11:23:03 +08:00 committed by GitHub
parent 73db80311a
commit 347e81b3cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -51,7 +51,7 @@ tokio_time = ["tokio/time"]
[dependencies] [dependencies]
ctor = "0.1" ctor = "0.1"
once_cell = "1.16" once_cell = "1.16"
bitflags = "1" bitflags = "2"
[dependencies.anyhow] [dependencies.anyhow]
version = "1" version = "1"

View file

@ -32,6 +32,7 @@ impl Default for Property {
} }
bitflags! { bitflags! {
#[derive(Debug, Copy, Clone)]
pub struct PropertyAttributes: i32 { pub struct PropertyAttributes: i32 {
const Default = sys::PropertyAttributes::default; const Default = sys::PropertyAttributes::default;
const Writable = sys::PropertyAttributes::writable; const Writable = sys::PropertyAttributes::writable;