Sanitize impl in macro
This commit is contained in:
parent
ee487540ac
commit
347314460a
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -303,7 +303,7 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lib"
|
name = "lib"
|
||||||
version = "1.4.2"
|
version = "1.4.2-hotfix"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"into-response-derive",
|
"into-response-derive",
|
||||||
|
@ -10,7 +10,7 @@ homepage = "emberal.github.io"
|
|||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "lib"
|
name = "lib"
|
||||||
version = "1.4.2"
|
version = "1.4.2-hotfix"
|
||||||
description = "A library with utilities and helper fuctions."
|
description = "A library with utilities and helper fuctions."
|
||||||
edition = { workspace = true }
|
edition = { workspace = true }
|
||||||
rust-version = { workspace = true }
|
rust-version = { workspace = true }
|
||||||
|
@ -7,7 +7,7 @@ pub fn into_response_derive_impl(input: DeriveInput) -> TokenStream {
|
|||||||
let name = &input.ident;
|
let name = &input.ident;
|
||||||
|
|
||||||
let expanded = quote! {
|
let expanded = quote! {
|
||||||
impl IntoResponse for #name {
|
impl axum::response::IntoResponse for #name {
|
||||||
fn into_response(self) -> axum::response::Response {
|
fn into_response(self) -> axum::response::Response {
|
||||||
let version = env!("CARGO_PKG_VERSION");
|
let version = env!("CARGO_PKG_VERSION");
|
||||||
lib::serde::response::BaseResponse::new(version, self)
|
lib::serde::response::BaseResponse::new(version, self)
|
||||||
|
2
examples/multipart_file/Cargo.lock
generated
2
examples/multipart_file/Cargo.lock
generated
@ -286,7 +286,7 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lib"
|
name = "lib"
|
||||||
version = "1.4.2"
|
version = "1.4.2-hotfix"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user