In addition to the problems with the format of your code, you may also face more serious problems that can be fixed with another kind of tool—linters. A linter is a program that finds bad practices of writing code that can affect the future performance if the problem can be solved more simply. Rust has a good linter called clippy, included as a component since version 1.31, when it became a part of edition 2018. It's a good tool to use when building scripts to prevent a flood of bad coding practices. Let's install it and try to use it.