Skip to content

Commit f6b9f84

Browse files
committed
chore: unsafe for updated buffalo
1 parent 205879b commit f6b9f84

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/mptnew/src/bump_bufmut.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ unsafe impl BufMut for BumpBytesMut<'_> {
4747
panic_advance(&TryGetError { requested: cnt, available: remaining });
4848
}
4949

50-
// Addition will not overflow since the sum is at most the capacity.
51-
self.inner.set_len(len + cnt);
50+
// SAFETY: Addition will not overflow since the sum is at most the capacity.
51+
unsafe {
52+
self.inner.set_len(len + cnt);
53+
}
5254
}
5355

5456
#[inline(always)]

0 commit comments

Comments
 (0)