Distinguish netlink ACKs from errors and fix all clippy warnings #1

Merged
delandtj merged 1 commit from fix/clippy-warnings-and-ack-logging into master 2026-02-26 21:57:51 +00:00
Owner

Add NlMsg::Ack variant to distinguish ACK responses (error=0) from real
netlink errors at parse time. ACKs are now logged at TRACE level instead
of appearing as misleading "Error(nlmsgerr { error: 0 })" at DEBUG.

Fix all clippy warnings across the workspace: remove redundant imports,
replace transmutes with pointer casts, use is_empty() instead of len
comparisons, elide unnecessary lifetimes, derive Default where possible,
add type alias for complex callback type, and suppress unnecessary_cast
in generated nfnetlink_enum code.

Add NlMsg::Ack variant to distinguish ACK responses (error=0) from real netlink errors at parse time. ACKs are now logged at TRACE level instead of appearing as misleading "Error(nlmsgerr { error: 0 })" at DEBUG. Fix all clippy warnings across the workspace: remove redundant imports, replace transmutes with pointer casts, use is_empty() instead of len comparisons, elide unnecessary lifetimes, derive Default where possible, add type alias for complex callback type, and suppress unnecessary_cast in generated nfnetlink_enum code.
Add NlMsg::Ack variant to distinguish ACK responses (error=0) from real
netlink errors at parse time. ACKs are now logged at TRACE level instead
of appearing as misleading "Error(nlmsgerr { error: 0 })" at DEBUG.

Fix all clippy warnings across the workspace: remove redundant imports,
replace transmutes with pointer casts, use is_empty() instead of len
comparisons, elide unnecessary lifetimes, derive Default where possible,
add type alias for complex callback type, and suppress unnecessary_cast
in generated nfnetlink_enum code.
delandtj merged commit 51e45c0678 into master 2026-02-26 21:57:51 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
delandtj/rustables!1
No description provided.