Skip to content

Commit

Permalink
fix: deleted types not defined by rfc
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscaOrtegaG committed Jun 5, 2024
1 parent c522db1 commit ba2c740
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/message/rrtype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ pub enum Rrtype {
ANY, // 255 - [RFC1035][RFC6895][RFC8482]
URI, // 256 - [RFC7553]
CAA, // 257 - [RFC8659]
AVC, // 258 - [Wolfgang_Riedel]
DOA, // 259 - [draft-durand-doa-over-dns]
AMTRELAY, // 260 - [RFC8777]
RESINFO, // 261 - [RFC-ietf-add-resolver-info-13]
UNKNOWN(u16),
Expand Down Expand Up @@ -139,8 +137,6 @@ impl From<Rrtype> for u16 {
Rrtype::ANY => 255,
Rrtype::URI => 256,
Rrtype::CAA => 257,
Rrtype::AVC => 258,
Rrtype::DOA => 259,
Rrtype::AMTRELAY => 260,
Rrtype::RESINFO => 261,
Rrtype::UNKNOWN(val) => val
Expand Down Expand Up @@ -246,8 +242,6 @@ impl From<&str> for Rrtype {
"ANY" => Rrtype::ANY,
"URI" => Rrtype::URI,
"CAA" => Rrtype::CAA,
"AVC" => Rrtype::AVC,
"DOA" => Rrtype::DOA,
"AMTRELAY" => Rrtype::AMTRELAY,
"RESINFO" => Rrtype::RESINFO,
_ => Rrtype::UNKNOWN(99),
Expand Down Expand Up @@ -321,8 +315,6 @@ impl fmt::Display for Rrtype {
Rrtype::EUI64 => "EUI64",
Rrtype::TKEY => "TKEY",
Rrtype::IXFR => "IXFR",
Rrtype::AVC => "AVC",
Rrtype::DOA => "DOA",
Rrtype::AMTRELAY => "AMTRELAY",
Rrtype::RESINFO => "RESINFO",
Rrtype::RP => "RP",
Expand Down

0 comments on commit ba2c740

Please sign in to comment.