* add clippy.toml with an msrv * fix clippy lints * replace inefficient algorithm * replace ::std with ::core in more places and comments * fix some test warnings * fix clippy lints in tests