Sanitize returntype in macro

This commit is contained in:
Martin Berg Alstad
2024-08-05 01:46:35 +02:00
parent 865cc6ddb9
commit ee487540ac
4 changed files with 6 additions and 5 deletions

View File

@ -8,7 +8,7 @@ pub fn into_response_derive_impl(input: DeriveInput) -> TokenStream {
let expanded = quote! {
impl IntoResponse for #name {
fn into_response(self) -> Response {
fn into_response(self) -> axum::response::Response {
let version = env!("CARGO_PKG_VERSION");
lib::serde::response::BaseResponse::new(version, self)
.into_response()