Remove AtatLen#260
Conversation
|
@MathiasKoch any thoughts on this? |
|
Thanks for digging into this. You're right that it's effectively unused. The premise holds: atat's own client never reads MAX_LEN, since it writes into the caller-provided buf with no bounds check. The only thing that actually consumes the computed value is 3 test-only stack-buffer allocations in ublox-short-range-rs (command/edm/mod.rs:216, 259, 395, all inside #[cfg(test)]). Everything else, meaning the MAX_LEN propagation impls and the manual/derived AtatLen impls in both ublox drivers, is just plumbing feeding a value nothing ultimately reads. No production code path uses it. So I'm happy to merge this as-is. The drivers are rev-pinned to atat, so nothing breaks until someone bumps the rev, and the consumer-side cleanup is small (drop the dead AtatLen impls/derives, resize 3 test buffers). We can do that in a follow-up when we update the pin. LGTM. |
|
Nice, then I suggest to take a look just at the |
|
Sorry about the delay on this! It has been a busy week. |
(cherry picked from commit a5d7558)
I don't see how it could be used since even when calling
AtatCmd::writethe buffer size depends on the client'sINGRESS_BUF_SIZEand no check is made by default.I made this PR just to see if it would compile, if others are actually using this feature then fell free to close it.