We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ddf335 commit 437b52fCopy full SHA for 437b52f
src/bit_string.rs
@@ -6,7 +6,7 @@ pub struct BitString<'a> {
6
}
7
8
impl<'a> BitString<'a> {
9
- pub(crate) fn new(data: &'a [u8], padding_bits: u8) -> Option<BitString<'a>> {
+ pub fn new(data: &'a [u8], padding_bits: u8) -> Option<BitString<'a>> {
10
if padding_bits > 7 || (data.is_empty() && padding_bits != 0) {
11
return None;
12
0 commit comments