JesperAxelsson / rust-intmap

Specialized hashmap for u64 keys
MIT License
30 stars 10 forks source link

rustfmt #29

Closed chinoto closed 2 years ago

chinoto commented 2 years ago

I have "format on save" enabled in my editor, but I can disable it when working on this project if preferred. I tried looking into a way to have the project automagically disable rustfmt, but it seems all the potential solutions are nightly features or broken.

I believe the block expression starting at lib.rs:78 was meant to work around a lifetime bug that has since been fixed (Non-lexical lifetimes), so I removed it to preserve indentation. You had three instances of outer.next() followed by some methods where rustfmt breaks .next() onto its own line, so I put outer.next() in a block expression to keep it together.