Anthony Ramine пре 7 година
родитељ
комит
8bbc39d43d
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      src/host.rs
  2. 1 1
      src/parser.rs

+ 1 - 1
src/host.rs

@@ -14,7 +14,7 @@ use std::fmt::{self, Formatter};
 use std::net::{Ipv4Addr, Ipv6Addr};
 
 #[derive(Copy, Clone, Debug, Eq, PartialEq)]
-pub enum HostInternal {
+pub(crate) enum HostInternal {
     None,
     Domain,
     Ipv4(Ipv4Addr),

+ 1 - 1
src/parser.rs

@@ -972,7 +972,7 @@ impl<'a> Parser<'a> {
         Ok((host, input))
     }
 
-    pub fn parse_file_host<'i>(
+    pub(crate) fn parse_file_host<'i>(
         &mut self,
         input: Input<'i>,
     ) -> ParseResult<(bool, HostInternal, Input<'i>)> {