vrruiz / xisfits

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

Use the Default trait for XISFHeader and XISFData initialization #10

Closed Razican closed 5 years ago

Razican commented 5 years ago

Now that both XISFHeader and XISFData implement the Default trait, their initialization can be simplified a lot, since empty strings, 0s and empty vectors are the default values for those attributes.

vrruiz commented 5 years ago

Didn't know it could be done that way. Much cleaner! :)