Skip to content

Commit

Permalink
Merge pull request #1346 from Wandalen/program_tools_v1
Browse files Browse the repository at this point in the history
derive_tools : better tests for From for enums with genericics
  • Loading branch information
Wandalen authored May 19, 2024
2 parents fe35246 + db49379 commit b3a67f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#[ allow( non_snake_case ) ]
#[ allow( unused_imports ) ]
#![ allow( non_snake_case ) ]
#![ allow( unused_imports ) ]
use super::*;

pub mod core {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
{
Expand Down

0 comments on commit b3a67f0

Please sign in to comment.