Explorar o código

Remove pub access to contains method

Douman %!s(int64=7) %!d(string=hai) anos
pai
achega
ed7b991f34
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      percent_encoding/lib.rs

+ 1 - 1
percent_encoding/lib.rs

@@ -68,7 +68,7 @@ const BITS_PER_CHUNK: usize = 8 * std::mem::size_of::<Chunk>();
 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