Skip to content

Commit

Permalink
Fix format after accepting suggested changes from review
Browse files Browse the repository at this point in the history
Signed-off-by: Darach Ennis <[email protected]>
  • Loading branch information
darach committed Oct 16, 2024
1 parent 605ded8 commit a4955a3
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions tremor-codec/src/codec/avro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,22 +212,8 @@ where
Schema::Double => AvroValue::Double(data.try_as_f64()?),
Schema::Bytes => AvroValue::Bytes(data.try_as_bytes()?.to_vec()),
Schema::String => AvroValue::String(data.try_as_str()?.to_string()),
Schema::Array(s) => {
array_value_to_avro(
data.try_as_array()?,
s,
resolver,
)
.await?
}
Schema::Map(s) => {
map_value_to_avro(
data.try_as_object()?,
s,
resolver,
)
.await?
}
Schema::Array(s) => array_value_to_avro(data.try_as_array()?, s, resolver).await?,
Schema::Map(s) => map_value_to_avro(data.try_as_object()?, s, resolver).await?,
Schema::Union(s) => {
for (i, variant) in s.variants().iter().enumerate() {
if let Ok(v) = value_to_avro(data, variant, resolver).await {
Expand Down

0 comments on commit a4955a3

Please sign in to comment.