Last active
December 31, 2018 11:20
-
-
Save palfrey/48588761e085fe12f5d79b1c7936f1af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let ast: syn::ItemFn = syn::parse(input).unwrap(); | |
let name = ast.ident; | |
let block = ast.block; | |
let attrs = ast.attrs; | |
let gen = quote! { | |
#(#attrs) | |
* | |
fn #name () { | |
serial_test::serial_core(#key, || { | |
#block | |
}); | |
} | |
}; | |
return gen.into(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment