Skip to content

Commit

Permalink
the new enum should be non_exhaustive
Browse files Browse the repository at this point in the history
  • Loading branch information
keepsimple1 committed Nov 23, 2024
1 parent 3a7d240 commit 8dfded8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dns_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use std::{
/// DNS resource record types
/// See [RFC 1035 section 3.2.2](https://datatracker.ietf.org/doc/html/rfc1035#section-3.2.2)
#[derive(Debug, PartialEq, Eq, Clone, Copy, PartialOrd, Ord)]
#[non_exhaustive]
#[repr(u16)]
pub enum RRType {
/// DNS record type for IPv4 address
Expand Down

0 comments on commit 8dfded8

Please sign in to comment.