Skip to content

block-buffer: eliminate unreachable panic in LazyBuffer::digest_blocks - #731

Merged
newpavlov merged 2 commits into
masterfrom
block-buffer/eliminate_panic
Feb 8, 2022
Merged

block-buffer: eliminate unreachable panic in LazyBuffer::digest_blocks#731
newpavlov merged 2 commits into
masterfrom
block-buffer/eliminate_panic

Conversation

@newpavlov

Copy link
Copy Markdown
Member

With the previous code the compiler was unable to infer that tail_len is always smaller or equal to block size.

@newpavlov
newpavlov merged commit b08d7c2 into master Feb 8, 2022
@newpavlov
newpavlov deleted the block-buffer/eliminate_panic branch February 8, 2022 15:22
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.

1 participant