refactor: apply several clippy lints
basically ran cargo clippy --fix, also fixed most that wasn't auto-fixed.
included many --warn=pedantic lints as well
clippy lints
basically ran cargo clippy --fix, also fixed most that wasn't auto-fixed.
included many --warn=pedantic lints as well