From 1040c41760e456482047b2696d5c7147f43b5c1c Mon Sep 17 00:00:00 2001 From: Jacob Kiesel Date: Fri, 22 Jul 2022 09:45:02 -0600 Subject: [PATCH] feat(napi): add some useful derived traits for the Null type (#1241) --- crates/napi/src/bindgen_runtime/js_values/nil.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/napi/src/bindgen_runtime/js_values/nil.rs b/crates/napi/src/bindgen_runtime/js_values/nil.rs index 325cd7a2..5f1e9bc0 100644 --- a/crates/napi/src/bindgen_runtime/js_values/nil.rs +++ b/crates/napi/src/bindgen_runtime/js_values/nil.rs @@ -2,6 +2,7 @@ use std::ptr; use crate::{bindgen_prelude::*, check_status, sys, type_of, Error, Result, Status, ValueType}; +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq, Ord, PartialOrd)] pub struct Null; pub type Undefined = ();