Skip to content

Commit

Permalink
AVRO-3631: Reformat using rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
RikHeijdens committed Sep 29, 2022
1 parent a31fcfc commit 5c2d197
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions lang/rust/avro/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -952,13 +952,13 @@ mod tests {
decimal::Decimal,
duration::{Days, Duration, Millis, Months},
schema::{Name, RecordField, RecordFieldOrder, Schema, UnionSchema},
types::Value,
to_value,
types::Value,
};
use apache_avro_test_helper::logger::{assert_logged, assert_not_logged};
use pretty_assertions::assert_eq;
use serde::{Deserialize, Serialize};
use uuid::Uuid;
use serde::{Serialize, Deserialize};

#[test]
fn validate() {
Expand Down Expand Up @@ -2396,14 +2396,12 @@ Field with name '"b"' is not a member of the map items"#,

#[derive(Debug, Serialize, Deserialize)]
struct TestStructFixedField {
field: [u8; 6]
field: [u8; 6],
}

#[test]
fn test_avro_3631_serialize_fixed_fields() {
let test = TestStructFixedField {
field: [1; 6]
};
let test = TestStructFixedField { field: [1; 6] };
let value: Value = to_value(test).unwrap();
let schema = Schema::parse_str(
r#"
Expand All @@ -2421,8 +2419,9 @@ Field with name '"b"' is not a member of the map items"#,
}
]
}
"#
).unwrap();
"#,
)
.unwrap();
assert!(value.validate(&schema));
}
}

0 comments on commit 5c2d197

Please sign in to comment.