mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Add an IntoIterator for FormMetadata
This commit is contained in:
parent
17b7eec287
commit
b41d0872bd
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.
|
||||
///
|
||||
/// Returns the request and the reporter progress bar id.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue