changeset 6:e1ae33383eb8

Use new int-enc crate; remove unnecessary assert! in skipmap
author Lewin Bormann <lbo@spheniscida.de>
date Thu, 09 Jun 2016 20:00:24 +0200
parents 648f5eaff65b
children 82da245a74cd
files Cargo.toml src/lib.rs src/skipmap.rs
diffstat 3 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Cargo.toml	Thu Jun 09 19:07:16 2016 +0200
+++ b/Cargo.toml	Thu Jun 09 20:00:24 2016 +0200
@@ -4,5 +4,5 @@
 authors = ["Lewin Bormann <lbo@spheniscida.de>"]
 
 [dependencies]
-integer-encoding = "0.10.0"
+integer-encoding = "0.11.0"
 rand = "0.3"
--- a/src/lib.rs	Thu Jun 09 19:07:16 2016 +0200
+++ b/src/lib.rs	Thu Jun 09 20:00:24 2016 +0200
@@ -1,7 +1,11 @@
+extern crate rand;
+extern crate integer_encoding;
 
-extern crate rand;
+pub use skipmap::Comparator;
 
+mod memtable;
 mod skipmap;
+mod types;
 
 #[cfg(test)]
 mod tests {
--- a/src/skipmap.rs	Thu Jun 09 19:07:16 2016 +0200
+++ b/src/skipmap.rs	Thu Jun 09 20:00:24 2016 +0200
@@ -115,7 +115,6 @@
 
     pub fn insert(&mut self, key: Vec<u8>, val: Vec<u8>) {
         assert!(!key.is_empty());
-        assert!(!val.is_empty());
 
         // Keeping track of skip entries that will need to be updated
         let new_height = self.random_height();