Skip to content

Commit

Permalink
chore: cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Jul 28, 2024
1 parent 9c86f44 commit e2ccf8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_ast_macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use proc_macro::TokenStream;
use proc_macro2::TokenStream as TokenStream2;
use quote::{quote, ToTokens};
use quote::quote;

fn enum_repr(enum_: &syn::ItemEnum) -> TokenStream2 {
if enum_.variants.iter().any(|var| !matches!(var.fields, syn::Fields::Unit)) {
Expand Down Expand Up @@ -41,7 +41,7 @@ pub fn ast(_args: TokenStream, input: TokenStream) -> TokenStream {
#repr
#input
};
TokenStream::from(expanded.into_token_stream())
TokenStream::from(expanded)
}

/// Dummy derive macro for a non-existent trait `Ast`.
Expand Down

0 comments on commit e2ccf8e

Please sign in to comment.