-
The closest thing I could find was Support generating OpenAPI/Swagger docs where the user discussed Bug ReportVersionMy dependencies are
as I've got in my PlatformMacOS M1 2021 model DescriptionWhen trying the example code listed in sqlx-postgres (but with the crate versions listed above) I get error[E0046]: not all trait items implemented, missing: `Body`
--> /Users/ianqs/.cargo/registry/src/github.com-1ecc6299db9ec823/axum-core-0.3.3/src/macros.rs:72:9
|
72 | impl $crate::response::IntoResponse for $name {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Body` in implementation
|
::: /Users/ianqs/.cargo/registry/src/github.com-1ecc6299db9ec823/axum-core-0.3.3/src/response/into_response.rs:129:5
|
129 | type Body;
| --------- `Body` from trait
|
::: /Users/ianqs/.cargo/registry/src/github.com-1ecc6299db9ec823/axum-core-0.3.3/src/extract/rejection.rs:5:1
|
5 | / composite_rejection! {
6 | | /// Rejection type for extractors that buffer the request body. Used if the
7 | | /// request body cannot be buffered due to an error.
8 | | pub enum FailedToBufferBody {
... |
11 | | }
12 | | }
| |_- in this macro invocation
|
= note: this error originates in the macro `composite_rejection` (in Nightly builds, run with -Z macro-backtrace for more info) Sorry, I know this is a silly question given I'm using a completely different version, but I've tried googling this specific error around and couldn't find anything that was useful. I'm new-ish to Rust and I can't tell what exactly I need to implement for what structure - the code seems relatively uncomplicated so...? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Try |
Beta Was this translation helpful? Give feedback.
-
Solved in the other discussion – apparently the source checkout of axum-core 0.3.3 from crates.io was corrupted. Deleting the whole |
Beta Was this translation helpful? Give feedback.
Solved in the other discussion – apparently the source checkout of axum-core 0.3.3 from crates.io was corrupted. Deleting the whole
/Users/ianqs/.cargo/registry/src/github.com-1ecc6299db9ec823/axum-core-0.3.3
directory that contained the file which caused the error fixed it.