Why this cannot borrow multipart as mutable more than once at a time
error?
#1644
Replies: 1 comment 19 replies
-
The signature of
The We do this because you can only consume one field at a time. Next I'm not sure why the library uses that signature, could just be an oversight or maybe there is some technical reason for it. I'm honestly not sure if there is a way to resolve it except for buffering the field bytes in memory with https://docs.rs/axum/latest/axum/extract/multipart/struct.Field.html#method.bytes but I'm assuming you want to avoid that. |
Beta Was this translation helpful? Give feedback.
-
I have this code:
but the
client.upload()
signature is:It error with:
How can I fix this?
Beta Was this translation helpful? Give feedback.
All reactions