Jezza / mutf8

Basic support for mutf8 strings in Rust.
MIT License
4 stars 3 forks source link

Fix lints and re-format files #3

Closed mainrs closed 4 years ago

mainrs commented 4 years ago

Fixes cargo clippy lints and re-formats the files using 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

Edit: Could it be that you develop on Windows? Seems that cargo fmt changed almost all line endings :D

Jezza commented 4 years ago

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!