Resolve "Fix lint issues"
Closes #2 (closed)
Our CI linter uses cargo clippy -- -Dclippy::all -Wclippy::pedantic
command that previously failed due to multiple errors and warnings. Current commit fixes all of them and makes linter pass. The price was high - some functions changed their API, some structures were renamed. But all the warnings and errors seemed reasonable, so I believe it is not a big deal now.
Edited by Alexey Protsenko