File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " procedural-masquerade"
3
- version = " 0.1.1 "
3
+ version = " 0.1.2 "
4
4
authors = [" Simon Sapin <simon.sapin@exyr.org>" ]
5
5
description = " macro_rules for making proc_macro_derive pretending to be proc_macro"
6
6
documentation = " https://docs.rs/procedural-masquerade/"
Original file line number Diff line number Diff line change @@ -174,12 +174,11 @@ macro_rules! define_proc_macros {
174
174
#[ proc_macro_derive( $proc_macro_name) ]
175
175
pub fn $proc_macro_name( derive_input: :: proc_macro:: TokenStream )
176
176
-> :: proc_macro:: TokenStream {
177
- let $input = derive_input. to_string( ) ;
178
- let $input = $crate:: _extract_input( & $input) ;
179
- fn wrapper( $input: & str ) -> String {
177
+ fn wrapped( $input: & str ) -> String {
180
178
$body
181
179
}
182
- wrapper( $input) . parse( ) . unwrap( )
180
+ let derive_input_string = derive_input. to_string( ) ;
181
+ wrapped( $crate:: _extract_input( & derive_input_string) ) . parse( ) . unwrap( )
183
182
}
184
183
) +
185
184
}
You can’t perform that action at this time.
0 commit comments