requested changes

This commit is contained in:
mpostma 2020-10-27 11:40:31 +01:00
parent 33c7c5a7e3
commit d35a104ad3
3 changed files with 18 additions and 20 deletions

View file

@ -12,14 +12,14 @@ pub struct Synonyms {
}
impl Synonyms {
pub fn put_synonyms<A>(self, writer: &mut heed::RwTxn<MainT>, word: &[u8], synonyms: &fst::Set<A>) -> ZResult<()>
pub(crate) fn put_synonyms<A>(self, writer: &mut heed::RwTxn<MainT>, word: &[u8], synonyms: &fst::Set<A>) -> ZResult<()>
where A: AsRef<[u8]>,
{
let bytes = synonyms.as_fst().as_bytes();
self.synonyms.put(writer, word, bytes)
}
pub fn clear(self, writer: &mut heed::RwTxn<MainT>) -> ZResult<()> {
pub(crate) fn clear(self, writer: &mut heed::RwTxn<MainT>) -> ZResult<()> {
self.synonyms.clear(writer)
}