Replace unimplemented!() with unreachable!()#434
Replace unimplemented!() with unreachable!()#434simonrw wants to merge 1 commit intofix/axis-ordering-regionfrom
Conversation
…uccess These branches handle the case where cfitsio returns success but a null pointer, which should be impossible. Using unreachable!() better conveys this intent, while unimplemented!() misleadingly suggests a missing feature. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files
🚀 New features to boost your workflow:
|
Summary
FitsFile::open,FitsFile::edit, andNewFitsFile::openusedunimplemented!()for the case where cfitsio returns success but a null pointerunreachable!()better conveys the intentunimplemented!()misleadingly suggested a missing featureStacked on #433
Test plan
🤖 Generated with Claude Code