aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Carl Lerche <me@carllerche.com> 2020-10-16 15:45:38 -0700
committerGravatar GitHub <noreply@github.com> 2020-10-16 15:45:38 -0700
commitced050730c7a5f9d322c0cf9aedea67f16151e90 (patch)
tree7b3ed1687879911b55c643cb7dc1a375c1b0bc66 /tests
parent94c543f74b111e894d16faa43e4ad361b97ee87d (diff)
downloadbytes-ced050730c7a5f9d322c0cf9aedea67f16151e90.tar.gz
bytes-ced050730c7a5f9d322c0cf9aedea67f16151e90.tar.zst
bytes-ced050730c7a5f9d322c0cf9aedea67f16151e90.zip
Make BufMut an unsafe trait (#432)
Users of `BufMut` are unable to defend against incorrect implementations of `BufMut`, this makes the trait unsafe to implement. Fixes #329
Diffstat (limited to 'tests')
-rw-r--r--tests/test_buf_mut.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_buf_mut.rs b/tests/test_buf_mut.rs
index 10c526d..e994883 100644
--- a/tests/test_buf_mut.rs
+++ b/tests/test_buf_mut.rs
@@ -75,7 +75,7 @@ fn test_mut_slice() {
fn test_deref_bufmut_forwards() {
struct Special;
- impl BufMut for Special {
+ unsafe impl BufMut for Special {
fn remaining_mut(&self) -> usize {
unreachable!("remaining_mut");
}