Mercurial > lbo > hg > sstable
changeset 86:91149bda8f74
Remove superfluous impl for BoxedFilterPolicy
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sat, 22 Feb 2020 23:20:05 +0100 |
parents | 9486965587ce |
children | bd30396ecc87 |
files | src/filter.rs |
diffstat | 1 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/src/filter.rs Sat Feb 22 23:19:54 2020 +0100 +++ b/src/filter.rs Sat Feb 22 23:20:05 2020 +0100 @@ -19,18 +19,6 @@ /// couldn't be cloned otherwise) pub type BoxedFilterPolicy = Rc<Box<dyn FilterPolicy>>; -impl FilterPolicy for BoxedFilterPolicy { - fn name(&self) -> &'static str { - (**self).name() - } - fn create_filter(&self, keys: &[u8], key_offsets: &[usize]) -> Vec<u8> { - (**self).create_filter(keys, key_offsets) - } - fn key_may_match(&self, key: &[u8], filter: &[u8]) -> bool { - (**self).key_may_match(key, filter) - } -} - /// Used for tables that don't have filter blocks but need a type parameter. #[derive(Clone)] pub struct NoFilterPolicy;