Running `cargo clippy` provides the following output : https://gist.github.com/akesling/4535958548c362d09d52fa5c86c24f23 I propose fixing these issues.