This fixes the Clippy warnings in the project. I realise this has a lot of files changed, so I split it into a commit per directory within src. If you prefer, I can raise this with each commit in its own pull request.
There are a couple of API changes (e.g. methods taking self vs &self, and replacing an inherent to_string with impl core::fmt::Display) as a result of fixing lints on various to_xyz methods, though these are typically on types that are already Copy.
I have not run cargo fmt on the output, to avoid too much noise in the changes.
This fixes the Clippy warnings in the project. I realise this has a lot of files changed, so I split it into a commit per directory within src. If you prefer, I can raise this with each commit in its own pull request.
There are a couple of API changes (e.g. methods taking
self
vs&self
, and replacing an inherentto_string
withimpl core::fmt::Display
) as a result of fixing lints on variousto_xyz
methods, though these are typically on types that are alreadyCopy
.I have not run
cargo fmt
on the output, to avoid too much noise in the changes.