Closed mainrs closed 4 years ago
Fixes cargo clippy lints and re-formats the files using cargo fmt.
cargo clippy
cargo fmt
The std::mem::transmute one is a little bit tricky, here is a link that (hopefully) explains it well: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr
std::mem::transmute
Edit: Could it be that you develop on Windows? Seems that cargo fmt changed almost all line endings :D
I thought it was better to add a rustfmt file. That way I keep some semblance of structure and order to the code.
I applied the lints as well.
Thanks for your PR!
Fixes
cargo clippy
lints and re-formats the files usingcargo fmt
.The
std::mem::transmute
one is a little bit tricky, here is a link that (hopefully) explains it well: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptrEdit: Could it be that you develop on Windows? Seems that
cargo fmt
changed almost all line endings :D