mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
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:
parent
17b7eec287
commit
d15efb7d91
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
/// Build the upload request.
|
||||||
///
|
///
|
||||||
/// Returns the request and the reporter progress bar id.
|
/// Returns the request and the reporter progress bar id.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue