Implement cargo lint
and fix some clippy errors
#1374
Merged
cargo lint
and fix some clippy errors
#1374