From 77c00cb4e2f266b391a8750263dd1e7d6d59c20e Mon Sep 17 00:00:00 2001 From: Pierre Avital Date: Wed, 15 Nov 2023 14:52:05 +0100 Subject: [PATCH] fix z_bytes_map_check to fit new layout --- src/attachements.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attachements.rs b/src/attachements.rs index 7ce072ffa..9d1083e03 100644 --- a/src/attachements.rs +++ b/src/attachements.rs @@ -109,7 +109,7 @@ pub extern "C" fn z_bytes_map_null() -> z_owned_bytes_map_t { /// Returns `true` if the map is not in its gravestone state #[no_mangle] pub extern "C" fn z_bytes_map_check(this: &z_owned_bytes_map_t) -> bool { - this._0 != [0; 2] && this._1 != [0; 4] + this.is_some() } /// Destroys the map, resetting `this` to its gravestone value. ///