Sanitize returntype in macro
This commit is contained in:
parent
865cc6ddb9
commit
ee487540ac
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -303,7 +303,7 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
||||
|
||||
[[package]]
|
||||
name = "lib"
|
||||
version = "1.4.1-hotfix-hotfix-2"
|
||||
version = "1.4.2"
|
||||
dependencies = [
|
||||
"axum",
|
||||
"into-response-derive",
|
||||
|
@ -1,15 +1,16 @@
|
||||
[workspace]
|
||||
members = ["crates/*"]
|
||||
exclude = ["examples"]
|
||||
|
||||
[workspace.package]
|
||||
edition = "2021"
|
||||
rust-version = "1.79.0"
|
||||
rust-version = "1.80.0"
|
||||
authors = ["Martin Berg Alstad"]
|
||||
homepage = "emberal.github.io"
|
||||
|
||||
[package]
|
||||
name = "lib"
|
||||
version = "1.4.1-hotfix-hotfix-2"
|
||||
version = "1.4.2"
|
||||
description = "A library with utilities and helper fuctions."
|
||||
edition = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
|
@ -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()
|
||||
|
2
examples/multipart_file/Cargo.lock
generated
2
examples/multipart_file/Cargo.lock
generated
@ -286,7 +286,7 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
||||
|
||||
[[package]]
|
||||
name = "lib"
|
||||
version = "1.3.5"
|
||||
version = "1.4.2"
|
||||
dependencies = [
|
||||
"axum",
|
||||
"thiserror",
|
||||
|
Loading…
x
Reference in New Issue
Block a user