diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2023-03-01 01:19:16 -0500 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2023-03-01 01:19:16 -0500 |
commit | 6c62c26d0df243b00914de22cb8d30a8ba3e3eb4 (patch) | |
tree | b54f1285f3491f9821718686ed3982cdac19d57e /packet/src/question.rs | |
parent | inital working dns (diff) | |
download | wrapper-6c62c26d0df243b00914de22cb8d30a8ba3e3eb4.tar.gz wrapper-6c62c26d0df243b00914de22cb8d30a8ba3e3eb4.tar.bz2 wrapper-6c62c26d0df243b00914de22cb8d30a8ba3e3eb4.zip |
clippy my beloved
Diffstat (limited to '')
-rw-r--r-- | packet/src/question.rs | 4 |
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<()> { |