Commit 165f6f8d authored by Huachao Huang's avatar Huachao Huang

address comment

parent e918d1fc
...@@ -17,7 +17,6 @@ use rocksdb::{DB, Range, Options, Writable, DBEntryType, TablePropertiesCollecti ...@@ -17,7 +17,6 @@ use rocksdb::{DB, Range, Options, Writable, DBEntryType, TablePropertiesCollecti
use std::cmp::Ordering; use std::cmp::Ordering;
use std::collections::HashMap; use std::collections::HashMap;
use std::fmt; use std::fmt;
use std::io::Cursor;
use tempdir::TempDir; use tempdir::TempDir;
enum Props { enum Props {
...@@ -33,9 +32,8 @@ fn encode_u32(x: u32) -> Vec<u8> { ...@@ -33,9 +32,8 @@ fn encode_u32(x: u32) -> Vec<u8> {
w w
} }
fn decode_u32(x: &[u8]) -> u32 { fn decode_u32(mut x: &[u8]) -> u32 {
let mut r = Cursor::new(x); x.read_u32::<LittleEndian>().unwrap()
r.read_u32::<LittleEndian>().unwrap()
} }
struct ExampleCollector { struct ExampleCollector {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment