File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -561,11 +561,13 @@ pub fn one(input: TokenStream) -> TokenStream {
561
561
. into ( )
562
562
}
563
563
564
- fn split_for_impl ( generics : & syn:: Generics ) -> ( syn:: ImplGenerics , syn:: TypeGenerics , impl quote:: ToTokens ) {
564
+ fn split_for_impl (
565
+ generics : & syn:: Generics ,
566
+ ) -> ( syn:: ImplGenerics , syn:: TypeGenerics , impl quote:: ToTokens ) {
565
567
let ( impl_, type_, where_) = generics. split_for_impl ( ) ;
566
568
let where_ = match where_ {
567
- Some ( where_) => quote ! { #where_, } ,
568
- None => quote ! { where } ,
569
+ Some ( where_) => quote ! { #where_, } ,
570
+ None => quote ! { where } ,
569
571
} ;
570
572
( impl_, type_, where_)
571
573
}
Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ use std::ops::Neg;
20
20
Num ,
21
21
Float ,
22
22
) ]
23
- struct MyThing < T : Cake > ( T ) where T : Lie ;
23
+ struct MyThing < T : Cake > ( T )
24
+ where
25
+ T : Lie ;
24
26
25
27
trait Cake { }
26
28
trait Lie { }
You can’t perform that action at this time.
0 commit comments