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:
Charlie Marsh
2026-01-12 20:13:37 -05:00
committed by GitHub
parent e9755bceb3
commit 69333ead26

View File

@@ -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()?),