Sanitize impl in macro

This commit is contained in:
Martin Berg Alstad 2024-08-05 01:49:28 +02:00
parent ee487540ac
commit 347314460a
4 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@ -303,7 +303,7 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
[[package]]
name = "lib"
version = "1.4.2"
version = "1.4.2-hotfix"
dependencies = [
"axum",
"into-response-derive",

View File

@ -10,7 +10,7 @@ homepage = "emberal.github.io"
[package]
name = "lib"
version = "1.4.2"
version = "1.4.2-hotfix"
description = "A library with utilities and helper fuctions."
edition = { workspace = true }
rust-version = { workspace = true }

View File

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

View File

@ -286,7 +286,7 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
[[package]]
name = "lib"
version = "1.4.2"
version = "1.4.2-hotfix"
dependencies = [
"axum",
"thiserror",