Skip to content

Commit

Permalink
chore: Re-apply correct nightly formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Techassi <[email protected]>
  • Loading branch information
Techassi committed Nov 22, 2024
1 parent 499b27a commit 99d3ebc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
3 changes: 1 addition & 2 deletions kube-derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
//! A crate for kube's derive macros.
#![recursion_limit = "1024"]
extern crate proc_macro;
#[macro_use]
extern crate quote;
#[macro_use] extern crate quote;

mod custom_resource;
mod resource;
Expand Down
33 changes: 15 additions & 18 deletions kube-derive/tests/crd_schema_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,24 +136,21 @@ fn test_shortnames() {
#[test]
fn test_serialized_matches_expected() {
assert_json_eq!(
serde_json::to_value(Foo::new(
"bar",
FooSpec {
non_nullable: "asdf".to_string(),
non_nullable_with_default: "asdf".to_string(),
nullable_skipped: None,
nullable: None,
nullable_skipped_with_default: None,
nullable_with_default: None,
timestamp: DateTime::from_timestamp(0, 0).unwrap(),
complex_enum: ComplexEnum::VariantOne { int: 23 },
untagged_enum_person: UntaggedEnumPerson::GenderAndAge(GenderAndAge {
age: 42,
gender: Gender::Male,
}),
set: HashSet::from(["foo".to_owned()])
}
))
serde_json::to_value(Foo::new("bar", FooSpec {
non_nullable: "asdf".to_string(),
non_nullable_with_default: "asdf".to_string(),
nullable_skipped: None,
nullable: None,
nullable_skipped_with_default: None,
nullable_with_default: None,
timestamp: DateTime::from_timestamp(0, 0).unwrap(),
complex_enum: ComplexEnum::VariantOne { int: 23 },
untagged_enum_person: UntaggedEnumPerson::GenderAndAge(GenderAndAge {
age: 42,
gender: Gender::Male,
}),
set: HashSet::from(["foo".to_owned()])
}))
.unwrap(),
serde_json::json!({
"apiVersion": "clux.dev/v1",
Expand Down

0 comments on commit 99d3ebc

Please sign in to comment.