Skip to content

Commit

Permalink
Merge pull request #1 from gabrielh92/fix-avro
Browse files Browse the repository at this point in the history
Fix avro
  • Loading branch information
gabrielh92 authored Jun 18, 2022
2 parents 5a80e32 + c67d5f7 commit 7f60d5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lang/rust/avro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ serde_json = { default-features = false, version = "1.0.81", features = ["std"]
serde = { default-features = false, version = "1.0.137", features = ["derive"] }
snap = { default-features = false, version = "1.0.5", optional = true }
strum = { default-features = false, version = "0.24.1" }
strum_macros = { default-features = false, version = "0.24.1" }
strum_macros = { default-features = false, version = "0.24.0" }
thiserror = { default-features = false, version = "1.0.31" }
typed-builder = { default-features = false, version = "0.10.0" }
uuid = { default-features = false, version = "1.1.1", features = ["serde", "std", "v4"] }
Expand Down
3 changes: 3 additions & 0 deletions lang/rust/avro/src/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ pub(crate) fn encode_internal<S: Borrow<Schema>>(
return Err(Error::GetEnumSymbol(s.clone()));
}
}
Schema::Uuid => {
encode_bytes(s, buffer);
}
_ => {
return Err(Error::EncodeValueAsSchemaError {
value_kind: ValueKind::String,
Expand Down

0 comments on commit 7f60d5c

Please sign in to comment.