Skip to content

Commit

Permalink
refactor: remove unused macros
Browse files Browse the repository at this point in the history
Signed-off-by: nabil salah <[email protected]>
  • Loading branch information
Nabil-Salah committed Dec 23, 2024
1 parent 2dc082a commit 08c76e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dns_question.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::io;

use crate::{byte_packet_buffer::BytePacketBuffer, query_types::QueryType};

#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Clone)]
pub struct DnsQuestion {
pub name: String,
pub qtype: QueryType,
Expand Down
2 changes: 1 addition & 1 deletion src/dns_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{

use crate::{byte_packet_buffer::BytePacketBuffer, QueryType};

#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum DnsRecord {
UNKNOWN {
domain: String,
Expand Down
2 changes: 1 addition & 1 deletion src/query_types.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[derive(PartialEq, Eq, Debug, Clone, Hash, Copy)]
#[derive(PartialEq, Eq, Debug, Clone, Copy)]
pub enum QueryType {
UNKNOWN(u16),
A, // 1
Expand Down

0 comments on commit 08c76e5

Please sign in to comment.