summaryrefslogtreecommitdiff
path: root/packet/src/question.rs
diff options
context:
space:
mode:
Diffstat (limited to 'packet/src/question.rs')
-rw-r--r--packet/src/question.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet/src/question.rs b/packet/src/question.rs
index ccb5c92..076de00 100644
--- a/packet/src/question.rs
+++ b/packet/src/question.rs
@@ -7,8 +7,8 @@ pub struct DnsQuestion {
}
impl DnsQuestion {
- pub fn new(name: String, qtype: QueryType) -> DnsQuestion {
- DnsQuestion { name, qtype }
+ pub fn new(name: String, qtype: QueryType) -> Self {
+ Self { name, qtype }
}
pub fn read(&mut self, buffer: &mut PacketBuffer) -> Result<()> {