Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Aug 26, 2024
1 parent 57ce6bf commit 7fb91b8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
17 changes: 17 additions & 0 deletions rust/fury-derive/src/object/derive_enum.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

use proc_macro2::TokenStream;
use quote::quote;
use syn::DataEnum;
Expand Down
6 changes: 3 additions & 3 deletions rust/fury-derive/src/object/serializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ pub fn derive_serializer(ast: &syn::DeriveInput) -> TokenStream {
)
}
syn::Data::Enum(s) => (
derive_enum::gen_type_def(&s),
derive_enum::gen_write(&s),
derive_enum::gen_read(&s),
derive_enum::gen_type_def(s),
derive_enum::gen_write(s),
derive_enum::gen_read(s),
),
syn::Data::Union(_) => {
panic!("Union is not supported")
Expand Down

0 comments on commit 7fb91b8

Please sign in to comment.