Skip to content

Commit ed7b991

Browse files
authored
Remove pub access to contains method
1 parent 6b5091f commit ed7b991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

percent_encoding/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const BITS_PER_CHUNK: usize = 8 * std::mem::size_of::<Chunk>();
6868
impl AsciiSet {
6969
/// Called with UTF-8 bytes rather than code points.
7070
/// Not used for non-ASCII bytes.
71-
pub const fn contains(&self, byte: u8) -> bool {
71+
const fn contains(&self, byte: u8) -> bool {
7272
let chunk = self.mask[byte as usize / BITS_PER_CHUNK];
7373
let mask = 1 << (byte as usize % BITS_PER_CHUNK);
7474
(chunk & mask) != 0

0 commit comments

Comments
 (0)