Skip to content

Commit

Permalink
Fix experimental build
Browse files Browse the repository at this point in the history
  • Loading branch information
gyscos committed Dec 6, 2022
1 parent 8833d12 commit 96ceacb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dict.rs
Expand Up @@ -48,7 +48,7 @@ impl<'a> EncoderDictionary<'a> {
/// Only available with the `experimental` feature. Use `EncoderDictionary::copy` otherwise.
pub fn new(dictionary: &'a [u8], level: i32) -> Self {
Self {
cdict: zstd_safe::create_cdict_by_reference(dictionary, level),
cdict: zstd_safe::CDict::create_by_reference(dictionary, level),
}
}

Expand Down Expand Up @@ -82,7 +82,7 @@ impl<'a> DecoderDictionary<'a> {
/// Only available with the `experimental` feature. Use `DecoderDictionary::copy` otherwise.
pub fn new(dict: &'a [u8]) -> Self {
Self {
ddict: zstd_safe::create_ddict_by_reference(dict),
ddict: zstd_safe::DDict::create_by_reference(dict),
}
}

Expand Down

0 comments on commit 96ceacb

Please sign in to comment.