mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-21 23:04:49 +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))]
|
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
|
||||||
pub struct BufferUpdate {
|
pub struct BufferUpdate {
|
||||||
/// Optional content hash after applying this change.
|
/// Optional content hash after applying this change.
|
||||||
|
#[cfg_attr(feature = "serialize", serde(skip_serializing_if = "Option::is_none"))]
|
||||||
pub hash: Option<i64>,
|
pub hash: Option<i64>,
|
||||||
/// CRDT version after this change has been applied.
|
/// CRDT version after this change has been applied.
|
||||||
pub version: Vec<i64>,
|
pub version: Vec<i64>,
|
||||||
|
|
Loading…
Reference in a new issue