Skip to content

Commit

Permalink
fix: fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
PFC-developer committed Apr 24, 2024
1 parent 0af1a73 commit 58504dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ clippy:
test:
cargo test

format:
cargo +nightly fmt

optimize:
if [[ $(uname -m) =~ "arm64" ]]; then \
just optimize-arm; else \
Expand Down
4 changes: 2 additions & 2 deletions packages/pfc-dust-collector-derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use proc_macro::TokenStream;
use quote::quote;
use syn::{parse_macro_input, DataEnum, DeriveInput, Attribute};
use syn::{parse_macro_input, Attribute, DataEnum, DeriveInput};

/// Merges the variants of two enums.
///
Expand All @@ -10,7 +10,7 @@ use syn::{parse_macro_input, DataEnum, DeriveInput, Attribute};
fn merge_variants(metadata: TokenStream, left: TokenStream, right: TokenStream) -> TokenStream {
use syn::Data::Enum;

let args = parse_macro_input!(metadata with Attribute::parse_outer);// AttributeArgs);
let args = parse_macro_input!(metadata with Attribute::parse_outer); // AttributeArgs);
if let Some(first_arg) = args.first() {
return syn::Error::new_spanned(first_arg, "macro takes no arguments")
.to_compile_error()
Expand Down

0 comments on commit 58504dd

Please sign in to comment.