diff --git a/module/core/derive_tools/tests/inc/from_inner_variants_collisions.rs b/module/core/derive_tools/tests/inc/from_inner_variants_collisions.rs index 22f6886d6e..e04334e1fc 100644 --- a/module/core/derive_tools/tests/inc/from_inner_variants_collisions.rs +++ b/module/core/derive_tools/tests/inc/from_inner_variants_collisions.rs @@ -1,5 +1,5 @@ -#[ allow( non_snake_case ) ] -#[ allow( unused_imports ) ] +#![ allow( non_snake_case ) ] +#![ allow( unused_imports ) ] use super::*; pub mod core {} diff --git a/module/core/derive_tools/tests/inc/from_inner_variants_generics.rs b/module/core/derive_tools/tests/inc/from_inner_variants_generics.rs index 57e6d52114..3c30a7d406 100644 --- a/module/core/derive_tools/tests/inc/from_inner_variants_generics.rs +++ b/module/core/derive_tools/tests/inc/from_inner_variants_generics.rs @@ -5,7 +5,7 @@ use derive_tools::From; #[ derive( Debug, PartialEq, From ) ] // #[ debug ] -pub enum GetData< 'a, T : ToString + ?Sized > +pub enum GetData< 'a, T : ToString + ?Sized = str > { Nothing, FromT( &'a T ), diff --git a/module/core/derive_tools/tests/inc/from_inner_variants_generics_where.rs b/module/core/derive_tools/tests/inc/from_inner_variants_generics_where.rs index b1b87224dd..cfe6e82394 100644 --- a/module/core/derive_tools/tests/inc/from_inner_variants_generics_where.rs +++ b/module/core/derive_tools/tests/inc/from_inner_variants_generics_where.rs @@ -5,7 +5,7 @@ use derive_tools::From; #[ derive( Debug, PartialEq, From ) ] // #[ debug ] -pub enum GetData< 'a, T > +pub enum GetData< 'a, T = str > where T : ToString + ?Sized, {