Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion axum/src/extract/multipart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ where

impl Multipart {
/// Yields the next [`Field`] if available.
pub async fn next_field(&mut self) -> Result<Option<Field<'_>>, MultipartError> {
pub async fn next_field<'output, 'multipart: 'output>(
&'multipart mut self,
) -> Result<Option<Field<'output>>, MultipartError> {
let field = self
.inner
.next_field()
Expand Down