Apply clippy to all code

Sergej Kostjucenko requested to merge at-fix-clippy into master

Created by: athei

The clippy CI job wasn't applied to testing code. I fixed that and also corrected all clippy lints that came up due to this.

Merge request reports