diff options
Diffstat (limited to 'src/table/util.rs')
-rw-r--r-- | src/table/util.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/table/util.rs b/src/table/util.rs index 39412c79..0b10cf3f 100644 --- a/src/table/util.rs +++ b/src/table/util.rs @@ -1,5 +1,3 @@ -use std::borrow::Cow; - use serde::{Deserialize, Serialize}; use garage_util::data::*; @@ -9,8 +7,8 @@ use crate::schema::*; #[derive(Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct EmptyKey; impl SortKey for EmptyKey { - fn sort_key(&self) -> Cow<'_, [u8]> { - Cow::from(&[][..]) + fn sort_key(&self) -> &[u8] { + &[] } } impl PartitionKey for EmptyKey { |