Skip to content

Commit

Permalink
Fix issues for cargo fmt in 1.72 (#940)
Browse files Browse the repository at this point in the history
This PR fixes code formatting for Rust 1.72.
  • Loading branch information
qinsoon authored Sep 5, 2023
1 parent 2e29b97 commit df1c83f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion macros/src/has_spaces_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ pub(crate) fn derive(input: DeriveInput) -> TokenStream2 {
let syn::Data::Struct(syn::DataStruct {
fields: syn::Fields::Named(ref fields),
..
}) = input.data else {
}) = input.data
else {
abort_call_site!("`#[derive(HasSpaces)]` only supports structs with named fields.");
};

Expand Down
3 changes: 2 additions & 1 deletion macros/src/plan_trace_object_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ pub(crate) fn derive(input: DeriveInput) -> TokenStream2 {
let syn::Data::Struct(syn::DataStruct {
fields: syn::Fields::Named(ref fields),
..
}) = input.data else {
}) = input.data
else {
abort_call_site!("`#[derive(PlanTraceObject)]` only supports structs with named fields.");
};

Expand Down

0 comments on commit df1c83f

Please sign in to comment.