datrs / hypercore

Secure, distributed, append-only log
https://docs.rs/hypercore
Apache License 2.0
332 stars 37 forks source link

Clippy and fmt #4

Closed khernyo closed 6 years ago

khernyo commented 6 years ago

This PR applies the changes suggested by clippy and reformats the code using rustfmt.

It also contains a possible bugfix in https://github.com/datrs/hypercore/commit/81772ec637e4ed7bdc391de4645303419b423502

Checklist

Note: only a small amount of new tests are added, not every change is tested.

Semver Changes

Minor because of public api changes.

khernyo commented 6 years ago

Let me know if any of these are not to your liking.

khernyo commented 6 years ago

Latest rust nightly is incompatible with latest clippy. Oh well.