Tweaked a package-private Rust function to not be public.

pull/40/head
Project Nayuki 6 years ago
parent c36c4a28eb
commit 025400e706

@ -1189,7 +1189,7 @@ impl QrSegmentMode {
// Returns the bit width of the character count field for a segment in this mode // Returns the bit width of the character count field for a segment in this mode
// in a QR Code at the given version number. The result is in the range [0, 16]. // in a QR Code at the given version number. The result is in the range [0, 16].
pub fn num_char_count_bits(&self, ver: Version) -> u8 { fn num_char_count_bits(&self, ver: Version) -> u8 {
use QrSegmentMode::*; use QrSegmentMode::*;
(match *self { (match *self {
Numeric => [10, 12, 14], Numeric => [10, 12, 14],

Loading…
Cancel
Save