Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed Jan 9, 2024
1 parent 9df0386 commit cd5756b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/cgp-component-macro/src/helper/consumer_impl.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use syn::punctuated::Punctuated;
use syn::token::{Brace, For, Impl, Plus, Comma};
use syn::token::{Brace, Comma, For, Impl, Plus};
use syn::{
parse_quote, GenericParam, Ident, ImplItem, ItemImpl, ItemTrait, Path, TraitItem,
TypeParamBound,
Expand Down
1 change: 0 additions & 1 deletion crates/cgp-component-macro/src/helper/provider_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ pub fn derive_provider_impl(
generic_args
};


let impl_generics = {
let mut impl_generics = provider_trait.generics.clone();

Expand Down
4 changes: 2 additions & 2 deletions crates/cgp-component-macro/src/tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ fn test_basic_derive_component() {

fn foo(&self) -> Self::Foo;
}
}
},
);
}
}
4 changes: 2 additions & 2 deletions crates/cgp-component-macro/src/tests/const_generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ fn test_derive_component_with_const_generic() {

fn foo(&self) -> Self::Foo;
}
}
},
);
}
}
3 changes: 1 addition & 2 deletions crates/cgp-component-macro/src/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@

pub mod basic;
pub mod const_generic;
pub mod const_generic;

0 comments on commit cd5756b

Please sign in to comment.