pub fn glibc_normalize(&mut self) {
        self.nameservers.truncate(NAMESERVER_LIMIT);
        self.search = self.search.take().map(|mut s| {
            s.truncate(SEARCH_LIMIT);
            s
        });
    }
/// Normalize config according to glibc rulees
///
/// Currently this method does the following things:
///
/// 1. Truncates list of nameservers to 3 at max
/// 2. Truncates search list to 6 at max
///
/// Other normalizations may be added in future as long as they hold true
/// for a particular GNU libc implementation.
///
/// Note: this method is not called after parsing, because we think it's
/// not forward-compatible to rely on such small and ugly limits. Still,
/// it's useful to keep implementation as close to glibc as possible.
Normalize config according to glibc rulees
Currently this method does the following things.

1. Truncates list of nameservers to 3 at max
2. Truncates search list to 6 at max

Other normalizations may be added in future as long as they hold true
for a particular GNU libc implementation.

this method is not called after parsing, because we think it's
not forward-compatible to rely on such small and ugly limits. Still,
it's useful to keep implementation as close to glibc as possible.
Normalize config according to glibc rulees Currently this method does the following things . 1 . Truncates list of nameservers to 3 at max 2 . Truncates search list to 6 at max Other normalizations may be added in future as long as they hold true for a particular GNU libc implementation . this method is not called after parsing because we think it ' s not forward - compatible to rely on such small and ugly limits . Still it ' s useful to keep implementation as close to glibc as possible .
pub fn glibc_normalize(&mut self) {
        self.nameservers.truncate(NAMESERVER_LIMIT);
        self.search = self.search.take().map(|mut s| {
            s.truncate(SEARCH_LIMIT);
            s
        });
    }
pub fn glibc_normalize ( & mut self ) { self . nameservers . truncate ( NAMESERVER_LIMIT ) ; self . search = self . search . take ( ) . map ( | mut s | { s . truncate ( SEARCH_LIMIT ) ; s } ) ; }
Normalize config according to glibc rulees
Currently this method does the following things:
Normalize config according to glibc rulees Currently this method does the following things :
&mut self
&mut self