Closed wiktor-k closed 3 months ago
to_tokens
We can probably make this as_tokens
.
warning: a
const
item should never be interior mutable
This can be set to allow, making it static makes no sense, the behaviour of const is the intuitive behaviour here.
Encode adds mutable key type (which annoys Hash derive):
I'd need to see the underlying issue for it, you can check the code using cargo expand to generate and then run clippy on it.
@wiktor-k Friendly ping 🙂
Thanks for the ping, I actually got busy with other work :)
I've replaced the PR with https://github.com/librasn/rasn/pull/234 (it was easier to start from main
and re-fix what was left).
Hi, I've been working on adding clippy to this project and most of the issues are minor but I'll need your help to resolve the remaining ones:
to_*
name but not consumingself
: This would require changing function signature:Encode
adds mutable key type (which annoys Hash derive):I'm not quite sure if some of them are false positives and I think you could comment on that.
(for the record I ran
cargo clippy --all
locally)