mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 19:25:56 +03:00
[PR #3375] [MERGED] Drop usage of EnumAsInner macro #3788
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#3788
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/3375
Author: @djc
Created: 12/5/2025
Status: ✅ Merged
Merged: 12/8/2025
Merged by: @djc
Base:
main← Head:no-enum-macro📝 Commits (6)
aee06aeserver: drop usage of EnumAsInner macro8401a7frecursor: drop usage of EnumAsInner macro86819ebserver: deduplicate maybe_next_name()75df7e4proto: statically type TSIG record data3fb4784proto: statically type SIG record data9bf07fbproto: drop usage of EnumAsInner macro📊 Changes
42 files changed (+597 additions, -668 deletions)
View changed files
📝
Cargo.lock(+0 -15)📝
Cargo.toml(+0 -1)📝
bin/tests/integration/forwarder.rs(+4 -2)📝
bin/tests/integration/named_tests.rs(+4 -2)📝
bin/tests/integration/zone_handler_battery/basic.rs(+240 -248)📝
bin/tests/integration/zone_handler_battery/dnssec.rs(+11 -3)📝
bin/tests/integration/zone_handler_battery/dynamic_update.rs(+13 -13)📝
conformance/Cargo.lock(+0 -13)📝
crates/proto/Cargo.toml(+0 -1)📝
crates/proto/src/client/mod.rs(+5 -2)📝
crates/proto/src/client/tests.rs(+4 -1)📝
crates/proto/src/dnssec/handle.rs(+18 -19)📝
crates/proto/src/dnssec/nsec3.rs(+10 -8)📝
crates/proto/src/dnssec/rdata/mod.rs(+1 -2)📝
crates/proto/src/dnssec/rdata/tsig.rs(+7 -13)📝
crates/proto/src/dnssec/signer.rs(+8 -12)📝
crates/proto/src/dnssec/tsig.rs(+2 -7)📝
crates/proto/src/error.rs(+8 -9)📝
crates/proto/src/h2/h2_client_stream.rs(+7 -7)📝
crates/proto/src/h3/h3_client_stream.rs(+7 -7)...and 22 more files
📄 Description
This macro was used on a bunch of our enums, but its usage was very limited:
In the end, it feels like the "direct" matching is mostly easier to read at usage sites, there is no "magic" method addition (which had me confused for a while yesterday), and it saves on dependencies. This PR also net deletes a few lines of code (though it has some fun semi-related improvements spliced in).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.