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 6b5091f commit ed7b991Copy full SHA for ed7b991
percent_encoding/lib.rs
@@ -68,7 +68,7 @@ const BITS_PER_CHUNK: usize = 8 * std::mem::size_of::<Chunk>();
68
impl AsciiSet {
69
/// Called with UTF-8 bytes rather than code points.
70
/// Not used for non-ASCII bytes.
71
- pub const fn contains(&self, byte: u8) -> bool {
+ const fn contains(&self, byte: u8) -> bool {
72
let chunk = self.mask[byte as usize / BITS_PER_CHUNK];
73
let mask = 1 << (byte as usize % BITS_PER_CHUNK);
74
(chunk & mask) != 0
0 commit comments