mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-24 16:14:48 +01:00
fix(lua): dont serialize hash when None
because it becomes an `userdata: NULL` and not `nil`, what??
This commit is contained in:
parent
ec6e131122
commit
0c8c4a61ea
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub struct BufferUpdate {
|
||||
/// Optional content hash after applying this change.
|
||||
#[cfg_attr(feature = "serialize", serde(skip_serializing_if = "Option::is_none"))]
|
||||
pub hash: Option<i64>,
|
||||
/// CRDT version after this change has been applied.
|
||||
pub version: Vec<i64>,
|
||||
|
|
Loading…
Reference in a new issue