fix: remove macro_result wrapper from migrate!

This commit is contained in:
Ryan Leckey 2020-07-26 18:06:06 -07:00
parent c454e1ea35
commit 51c5d82fec

View File

@ -84,10 +84,10 @@ pub fn migrate(input: TokenStream) -> TokenStream {
Ok(ts) => ts.into(),
Err(e) => {
if let Some(parse_err) = e.downcast_ref::<syn::Error>() {
macro_result(parse_err.to_compile_error())
parse_err.to_compile_error().into()
} else {
let msg = e.to_string();
macro_result(quote!(compile_error!(#msg)))
quote!(compile_error!(#msg)).into()
}
}
}