Skip to content
Prev Previous commit
Next Next commit
Fmt
  • Loading branch information
ascjones committed May 4, 2021
commit b0eda686e657c6b13dc26bedcf7ee42fadf075d8
1 change: 0 additions & 1 deletion derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.


extern crate alloc;
extern crate proc_macro;

Expand Down
2 changes: 1 addition & 1 deletion derive/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
use proc_macro2::TokenStream;
use quote::quote;
use syn::{
DeriveInput,
parse::Parse,
punctuated::Punctuated,
spanned::Spanned,
token,
AttrStyle,
Attribute,
DeriveInput,
Lit,
Meta,
NestedMeta,
Expand Down
5 changes: 2 additions & 3 deletions test_suite/tests/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,7 @@ fn custom_bounds() {
marker: PhantomData<T>,
}

#[derive(TypeInfo)]
#[derive(Default)]
#[derive(TypeInfo, Default)]
struct SomeType;

let ty = Type::builder()
Expand All @@ -472,7 +471,7 @@ fn custom_bounds() {
.composite(
Fields::named()
.field_of::<Greet<SomeType>>("ciao", "Greet<T>")
.field_of::<u16>("ho", "N")
.field_of::<u16>("ho", "N"),
);

assert_type!(Hey<SomeType, u16>, ty);
Expand Down