From ed7b991f34565f88e6e360c6de99657fbaafa617 Mon Sep 17 00:00:00 2001 From: Douman Date: Wed, 24 Jul 2019 13:39:26 +0200 Subject: [PATCH] Remove pub access to contains method --- percent_encoding/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/percent_encoding/lib.rs b/percent_encoding/lib.rs index 1bde640e5..27eaf6740 100644 --- a/percent_encoding/lib.rs +++ b/percent_encoding/lib.rs @@ -68,7 +68,7 @@ const BITS_PER_CHUNK: usize = 8 * std::mem::size_of::(); impl AsciiSet { /// Called with UTF-8 bytes rather than code points. /// Not used for non-ASCII bytes. - pub const fn contains(&self, byte: u8) -> bool { + const fn contains(&self, byte: u8) -> bool { let chunk = self.mask[byte as usize / BITS_PER_CHUNK]; let mask = 1 << (byte as usize % BITS_PER_CHUNK); (chunk & mask) != 0