add Makefile with clippy/rustfmt linting, fix all warnings

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Razvan Dimescu
2026-03-10 05:04:31 +02:00
parent 967150b991
commit 2c6133344a
9 changed files with 143 additions and 39 deletions

View File

@@ -13,6 +13,12 @@ pub struct DnsPacket {
pub resources: Vec<DnsRecord>,
}
impl Default for DnsPacket {
fn default() -> Self {
Self::new()
}
}
impl DnsPacket {
pub fn new() -> DnsPacket {
DnsPacket {