mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 07:21:08 +00:00
fix: remove macro_result wrapper from migrate!
This commit is contained in:
parent
c454e1ea35
commit
51c5d82fec
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user