mirror of
https://github.com/astral-sh/uv
synced 2026-01-22 14:00:11 -05:00
Avoid unwrapping size for file responses (#17434)
## Summary This may have been an oversight? The field is optional on the struct.
This commit is contained in:
@@ -203,7 +203,7 @@ impl<'de> Deserialize<'de> for PyxFile {
|
||||
.map(VersionSpecifiers::from)
|
||||
});
|
||||
}
|
||||
"size" => size = Some(access.next_value()?),
|
||||
"size" => size = access.next_value()?,
|
||||
"upload-time" => upload_time = Some(access.next_value()?),
|
||||
"url" => url = Some(access.next_value()?),
|
||||
"yanked" => yanked = Some(access.next_value()?),
|
||||
|
||||
Reference in New Issue
Block a user