aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2022-10-22 12:54:56 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2022-10-22 12:54:56 +0200
commit8341aba97f363518b0c299b4b507b61d0cfa19f3 (patch)
tree3d2eb12c1b55c90ae15b86592b1089826060f149
parente1b8f879044310795424a2fe1c302648aa866178 (diff)
RecordType: fix clippy warnings
-rw-r--r--src/call/nameserver.rs94
1 files changed, 47 insertions, 47 deletions
diff --git a/src/call/nameserver.rs b/src/call/nameserver.rs
index 01a5d41..6de2141 100644
--- a/src/call/nameserver.rs
+++ b/src/call/nameserver.rs
@@ -7,58 +7,58 @@ use std::fmt;
#[derive(Clone, Copy, Debug)]
pub enum RecordType {
A,
- AAAA,
- AFSDB,
- ALIAS,
- CAA,
- CERT,
- CNAME,
- HINFO,
- KEY,
- LOC,
- MX,
- NAPTR,
- NS,
- OPENPGPKEY,
- PTR,
- RP,
- SMIMEA,
- SOA,
- SRV,
- SSHFP,
- TLSA,
- TXT,
- URI,
- URL,
+ Aaaa,
+ Afsdb,
+ Alias,
+ Caa,
+ Cert,
+ Cname,
+ Hinfo,
+ Key,
+ Loc,
+ Mx,
+ NaPtr,
+ Ns,
+ OpenPgpKey,
+ Ptr,
+ Rp,
+ SmimeA,
+ Soa,
+ Srv,
+ Sshfp,
+ Tlsa,
+ Txt,
+ Uri,
+ Url,
}
impl fmt::Display for RecordType {
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
- A => write!(fmt, "A"),
- AAAA => write!(fmt, "AAAA"),
- AFSDB => write!(fmt, "AFSDB"),
- ALIAS => write!(fmt, "ALIAS"),
- CAA => write!(fmt, "CAA"),
- CERT => write!(fmt, "CERT"),
- CNAME => write!(fmt, "CNAME"),
- HINFO => write!(fmt, "HINFO"),
- KEY => write!(fmt, "KEY"),
- LOC => write!(fmt, "LOC"),
- MX => write!(fmt, "MX"),
- NAPTR => write!(fmt, "NAPTR"),
- NS => write!(fmt, "NS"),
- OPENPGPKEY => write!(fmt, "OPENPGPKEY"),
- PTR => write!(fmt, "PTR"),
- RP => write!(fmt, "RP"),
- SMIMEA => write!(fmt, "SMIMEA"),
- SOA => write!(fmt, "SOA"),
- SRV => write!(fmt, "SRV"),
- SSHFP => write!(fmt, "SSHFP"),
- TLSA => write!(fmt, "TLSA"),
- TXT => write!(fmt, "TXT"),
- URI => write!(fmt, "URI"),
- URL => write!(fmt, "URL"),
+ RecordType::A => write!(fmt, "A"),
+ RecordType::Aaaa => write!(fmt, "AAAA"),
+ RecordType::Afsdb => write!(fmt, "AFSDB"),
+ RecordType::Alias => write!(fmt, "ALIAS"),
+ RecordType::Caa => write!(fmt, "CAA"),
+ RecordType::Cert => write!(fmt, "CERT"),
+ RecordType::Cname => write!(fmt, "CNAME"),
+ RecordType::Hinfo => write!(fmt, "HINFO"),
+ RecordType::Key => write!(fmt, "KEY"),
+ RecordType::Loc => write!(fmt, "LOC"),
+ RecordType::Mx => write!(fmt, "MX"),
+ RecordType::NaPtr => write!(fmt, "NAPTR"),
+ RecordType::Ns => write!(fmt, "NS"),
+ RecordType::OpenPgpKey => write!(fmt, "OPENPGPKEY"),
+ RecordType::Ptr => write!(fmt, "PTR"),
+ RecordType::Rp => write!(fmt, "RP"),
+ RecordType::SmimeA => write!(fmt, "SMIMEA"),
+ RecordType::Soa => write!(fmt, "SOA"),
+ RecordType::Srv => write!(fmt, "SRV"),
+ RecordType::Sshfp => write!(fmt, "SSHFP"),
+ RecordType::Tlsa => write!(fmt, "TLSA"),
+ RecordType::Txt => write!(fmt, "TXT"),
+ RecordType::Uri => write!(fmt, "URI"),
+ RecordType::Url => write!(fmt, "URL"),
}
}
}