Mercurial > lbo > hg > leveldb-rs
changeset 295:1aa0cf7bd6e7
version: Make get() public.
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Tue, 26 Sep 2017 20:10:41 +0200 |
parents | 6caeb99cb216 |
children | 0c1c12771889 |
files | src/version.rs |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/version.rs Tue Sep 26 20:10:29 2017 +0200 +++ b/src/version.rs Tue Sep 26 20:10:41 2017 +0200 @@ -47,7 +47,7 @@ /// get returns the value for the specified key using the persistent tables contained in this /// Version. #[allow(unused_assignments)] - fn get<'a>(&self, key: InternalKey<'a>) -> Result<Option<(Vec<u8>, GetStats)>> { + pub fn get<'a>(&self, key: InternalKey<'a>) -> Result<Option<(Vec<u8>, GetStats)>> { let levels = self.get_overlapping(key); let ikey = key; let ukey = parse_internal_key(key).2;