Add an IntoIterator for FormMetadata (#14351)

## Summary

Clippy would lint for this if the symbol were public as a matter of API
hygiene, so adding it.
This commit is contained in:
Charlie Marsh 2025-06-29 15:07:07 -04:00 committed by GitHub
parent 17b7eec287
commit d15efb7d91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -758,6 +758,14 @@ impl FormMetadata {
}
}
impl<'a> IntoIterator for &'a FormMetadata {
type Item = &'a (&'a str, String);
type IntoIter = std::slice::Iter<'a, (&'a str, String)>;
fn into_iter(self) -> Self::IntoIter {
self.iter()
}
}
/// Build the upload request.
///
/// Returns the request and the reporter progress bar id.