aboutsummaryrefslogtreecommitdiff
path: root/src/table.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/table.rs')
-rw-r--r--src/table.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/table.rs b/src/table.rs
index 9ba9d94a..36c279e8 100644
--- a/src/table.rs
+++ b/src/table.rs
@@ -104,6 +104,11 @@ impl PartitionKey for Hash {
self.clone()
}
}
+impl SortKey for Hash {
+ fn sort_key(&self) -> &[u8] {
+ self.as_slice()
+ }
+}
#[async_trait]
pub trait TableFormat: Send + Sync {