vrruiz / xisfits

Convert images from XISF to FITS
MIT License
8 stars 0 forks source link

Some code improvements #2

Closed Razican closed 5 years ago

Razican commented 5 years ago

I ran cargo clippy and found out a couple of things to improve. I also ran cargo fmt to adapt the code formatting to Rust standards, and derived Debug and Default for the two main data structures (XISFHeader and XISFData). This allows a cleaner initialization, only calling default(), and in case of needing to debug them, it's easy to just call dbg!() on them.