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.
I ran
cargo clippy
and found out a couple of things to improve. I also rancargo fmt
to adapt the code formatting to Rust standards, and derivedDebug
andDefault
for the two main data structures (XISFHeader
andXISFData
). This allows a cleaner initialization, only callingdefault()
, and in case of needing to debug them, it's easy to just calldbg!()
on them.