fix some clippy::pedantic warnings found in the codebase.
This crate contains Clippy lints. For the main crate, check crates.io or GitHub.