Skip to content

Apply lints#7

Open
EdJoPaTo wants to merge 23 commits into
kaitai-io:masterfrom
EdJoPaTo:improvements
Open

Apply lints#7
EdJoPaTo wants to merge 23 commits into
kaitai-io:masterfrom
EdJoPaTo:improvements

Conversation

@EdJoPaTo
Copy link
Copy Markdown

@EdJoPaTo EdJoPaTo commented Sep 8, 2025

This mainly enables clippy::pedantic to improve the code quality.

My intention here is to not be breaking.

Feel free to ask questions to all the changes or let me remove lints that seem to change too much. I can also apply different lints on different PR when this helps.

Comment thread Cargo.toml
Comment on lines +5 to +6
edition = "2021"
rust-version = "1.63"
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.63 was the oldest version I managed to build. This is partially the case as a Cargo.lock was missing before. I added the lock file to simplify these checks against the oldest supported version in the future.

As 1.63 already supports edition 2021, I updated the edition too.

Comment thread src/lib.rs Outdated
In the future ptr_arg can improve the performance but as the ksc creates
.into() calls this is breaking (while its not considered as a breaking
change as this widens the usage its breaking with ksc)
it is only used internally and should not be shared as much.
While removing this from the trait is technically breaking its not changing the behaviour and isnt used by ksc so it can be changed relatively easily.

This allows it to change the arguments reducing the amount of clones.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant