Skip to content

Conversation

@szokeasaurusrex
Copy link
Member

@szokeasaurusrex szokeasaurusrex commented Oct 30, 2025

Description

Refactor get_sha1_checksums to be infallible by using NonZeroUsize for the chunk size. Is the only possible failure reason was the chunk size being zero, the method no longer needs to return a Result.

This change will slightly simplify the implementation for #2328.

Issues

Copy link
Member Author

szokeasaurusrex commented Oct 30, 2025

Refactor `get_sha1_checksums` to be infallible by using `NonZeroUsize` for the chunk size. Is the only possible failure reason was the chunk size being zero, the method no longer needs to return a `Result`.

This change will slightly simplify the implementation for #2328.
@szokeasaurusrex szokeasaurusrex force-pushed the 10-30-ref_chunks_get_sha1_checksums_infallible branch from 2676dd1 to f491da4 Compare October 30, 2025 14:06
@szokeasaurusrex szokeasaurusrex changed the title ref(chunks): get_sha1_checksums infallible ref(chunks): Make get_sha1_checksums infallible Oct 30, 2025
@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review October 30, 2025 14:38
@szokeasaurusrex szokeasaurusrex requested review from a team as code owners October 30, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants