diff --git a/src/dns_parser.rs b/src/dns_parser.rs index 4400a00..617c100 100644 --- a/src/dns_parser.rs +++ b/src/dns_parser.rs @@ -197,7 +197,7 @@ pub enum RRType { impl RRType { /// Converts `u16` into `RRType` if possible. - pub const fn from_u16(value: u16) -> Option { + pub const fn from_u16(value: u16) -> Option { match value { 1 => Some(RRType::A), 5 => Some(RRType::CNAME),