Skip to content

Commit 5614f75

Browse files
committed
make the MatchGeneratorDriver public so users can name the M in FrameCompressor<R,W,M>
1 parent eff39ae commit 5614f75

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ruzstd/src/encoding/match_generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use super::Sequence;
1414

1515
const MIN_MATCH_LEN: usize = 5;
1616

17-
/// Takes care of allocating and reusing vecs
17+
/// This is the default implementation of the `Matcher` trait. It allocates and reuses the buffers when possible.
1818
pub struct MatchGeneratorDriver {
1919
vec_pool: Vec<Vec<u8>>,
2020
suffix_pool: Vec<SuffixStore>,

ruzstd/src/encoding/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub(crate) mod util;
99
mod frame_compressor;
1010
mod levels;
1111
pub use frame_compressor::FrameCompressor;
12+
pub use match_generator::MatchGeneratorDriver;
1213

1314
use crate::io::{Read, Write};
1415
use alloc::vec::Vec;

0 commit comments

Comments
 (0)