Repository navigation
fix: remove stale dead code allowances - #467
Conversation
lxsaah
left a comment
There was a problem hiding this comment.
Thanks for your first contribution to AimDB! The CLI and MCP changes look good. Could you scope the dead_code allowance in the Zenoh profile to the items that need it in no_std builds? That way, embedded builds still flag newly unused code elsewhere in the module.
|
|
||
| // Used by the ROS 2 connector, which builds on this module. | ||
| #![allow(dead_code, unused_imports)] | ||
| #![cfg_attr(not(feature = "std"), allow(dead_code))] |
There was a problem hiding this comment.
Could we scope the no_std dead_code allowance to the items that need it? The module-wide attribute still hides newly unused code in embedded builds.
There was a problem hiding this comment.
okey working on it !!
Signed-off-by: Wizard52007 <iamsanketspatil@gmail.com>
|
Thanks for pointing this out! I've removed the module-level Both |
|
Hi! I've addressed your feedback by removing the module-level I've also validated both default and The latest commit is Could you please approve the pending CI runs and take another look at the updated changes when convenient? Thanks for your time and review! |
|
Sure, I already reviewed the changes. Everything looks fine, but there were some issues with workflow runs ( not related to your changes) I will approve and merge after checking those. |
|
Okey, that sounds good ! |
|
All the checks have successfully passed, any update on merge after that ? |
All done! Thanks a lot! Feel free to tackle another one!! |
|
Thankss !! keep up the good work and all the best for further challenges... |
Summary
Addresses #462 by removing stale and overly broad
dead_codeallowances and replacing them with more targeted lint handling.Changes
dead_codeallowance fromaimdb-mcp'sset_state.dead_codeallowances from the CLI error enum and implementation.#[cfg(test)]implementation.dead_codeandunused_importssuppression with a conditional allowance for no-std builds.Validation
make checkcargo test -p aimdb-zenoh-connectorcargo test -p aimdb-zenoh-connector --features stdcargo test -p aimdb-clicargo test -p aimdb-mcpgit diff --checkAll checks passed.
AI Assistance Disclosure
This contribution was developed using an AI-assisted workflow with Antigravity. I reviewed the implementation, examined the resulting diff, investigated the conditional compilation and lint decisions, and ran the validation checks before submitting this PR.