We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 205879b commit f6b9f84Copy full SHA for f6b9f84
crates/mptnew/src/bump_bufmut.rs
@@ -47,8 +47,10 @@ unsafe impl BufMut for BumpBytesMut<'_> {
47
panic_advance(&TryGetError { requested: cnt, available: remaining });
48
}
49
50
- // Addition will not overflow since the sum is at most the capacity.
51
- self.inner.set_len(len + cnt);
+ // SAFETY: Addition will not overflow since the sum is at most the capacity.
+ unsafe {
52
+ self.inner.set_len(len + cnt);
53
+ }
54
55
56
#[inline(always)]
0 commit comments