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 7fc61ea commit 6baaa94Copy full SHA for 6baaa94
src/kv/key.rs
@@ -7,11 +7,7 @@ use crate::kv::codec::{self, BytesEncoder};
7
use proptest::{arbitrary::any_with, collection::size_range};
8
#[cfg(test)]
9
use proptest_derive::Arbitrary;
10
-use std::{
11
- fmt,
12
- ops::{Bound, Deref, DerefMut},
13
- u8,
14
-};
+use std::{fmt, ops::Bound, u8};
15
use tikv_client_proto::kvrpcpb;
16
17
const _PROPTEST_KEY_MAX: usize = 1024 * 2; // 2 KB
@@ -183,17 +179,3 @@ impl fmt::Debug for Key {
183
179
write!(f, "Key({})", HexRepr(&self.0))
184
180
}
185
181
186
-
187
-impl Deref for Key {
188
- type Target = Vec<u8>;
189
190
- fn deref(&self) -> &Self::Target {
191
- &self.0
192
- }
193
-}
194
195
-impl DerefMut for Key {
196
- fn deref_mut(&mut self) -> &mut Self::Target {
197
- &mut self.0
198
199
0 commit comments