diff options
Diffstat (limited to 'src/document/inspect.rs')
| -rw-r--r-- | src/document/inspect.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/document/inspect.rs b/src/document/inspect.rs index ffdf536..350b69c 100644 --- a/src/document/inspect.rs +++ b/src/document/inspect.rs @@ -36,6 +36,8 @@ pub(crate) enum Action { MakeMap, /// Puts a string there. PutString(String), + /// Puts bytes there. + PutBytes(Vec<u8>), /// Deletes what is there. Delete, /// Changes what is there, a list or text it is in (`Place::in_list`). @@ -198,6 +200,9 @@ impl<'a> Inspector<'a> { OpType::Put(automerge::ScalarValue::Str(text)) => { Action::PutString(text.to_string()) } + OpType::Put(automerge::ScalarValue::Bytes(bytes)) => { + Action::PutBytes(bytes.clone()) + } OpType::Delete => Action::Delete, _ => Action::Other, }, |
