From c78a1e0623371891d2d15510c8a146ab874180c3 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Wed, 3 Dec 2025 20:25:14 +0200 Subject: [PATCH] feat: use Self on impl return of itself --- src/dns_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),