File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ pub fn initialize(_argc: *const isize, _argv: *const *const *const u8) -> isize
202202/// `"arbitrary-derive"` cargo feature.
203203#[ macro_export]
204204macro_rules! fuzz_target {
205- ( |$bytes: ident| $body: block ) => {
205+ ( |$bytes: ident| $body: expr ) => {
206206 const _: ( ) = {
207207 /// Auto-generated function
208208 #[ no_mangle]
@@ -244,15 +244,15 @@ macro_rules! fuzz_target {
244244 } ;
245245 } ;
246246
247- ( |$data: ident: & [ u8 ] | $body: block ) => {
247+ ( |$data: ident: & [ u8 ] | $body: expr ) => {
248248 $crate:: fuzz_target!( |$data| $body) ;
249249 } ;
250250
251- ( |$data: ident: $dty: ty| $body: block ) => {
252- $crate:: fuzz_target!( |$data: $dty| -> ( ) $body) ;
251+ ( |$data: ident: $dty: ty| $body: expr ) => {
252+ $crate:: fuzz_target!( |$data: $dty| -> ( ) { $body } ) ;
253253 } ;
254254
255- ( |$data: ident: $dty: ty| -> $rty: ty $body: block) => {
255+ ( |$data: ident: $dty: ty| -> $rty: ty $body: block) => {
256256 const _: ( ) = {
257257 /// Auto-generated function
258258 #[ no_mangle]
You can’t perform that action at this time.
0 commit comments