Fix clippy warnings from Rust 1.67
There are a few new (or newly enabled?) warnings in clippy with Rust 1.67. Somehow, we didn't see them coming via our nightly CI, but it makes sense to fix them soon now that our rust-latest CI is breaking.
Closes #748 (closed).
Closes #749 (closed).