Skip to content

Commit 167e32c

Browse files
committed
Add missing Null enum
1 parent 57ad46b commit 167e32c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/document.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ where
296296
/// necessary for serialization.
297297
#[derive(Deserialize, Serialize)]
298298
enum SerdeValue {
299+
/// Null
300+
Null,
299301
/// The str type is used for any text information.
300302
Str(String),
301303
/// Pre-tokenized str type,
@@ -329,6 +331,7 @@ enum SerdeValue {
329331
impl From<SerdeValue> for Value {
330332
fn from(value: SerdeValue) -> Self {
331333
match value {
334+
SerdeValue::Null => Self::Null,
332335
SerdeValue::Str(v) => Self::Str(v),
333336
SerdeValue::PreTokStr(v) => Self::PreTokStr(v),
334337
SerdeValue::U64(v) => Self::U64(v),

0 commit comments

Comments
 (0)