Skip to content

fix: panics, grayscale bug, duplicate filter, and process::exit in library code - #320

Open
Cybersnake223 wants to merge 2 commits into
InioX:mainfrom
Cybersnake223:fix/panics-and-bugs
Open

fix: panics, grayscale bug, duplicate filter, and process::exit in library code#320
Cybersnake223 wants to merge 2 commits into
InioX:mainfrom
Cybersnake223:fix/panics-and-bugs

Conversation

@Cybersnake223

@Cybersnake223 Cybersnake223 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Replace todo!() panics in FilterReturnType conversionValue::Null now coerces to an empty string instead of panicking at runtime
  • Fix grayscale filter on HSL colors — was calling invert() instead of grayscale_simple()
  • Remove duplicate set_blue filter registration — registered twice in main.rs, second overwrote first
  • Replace std::process::exit(1) with proper error propagationformat_hook now returns Err instead of bypassing Drop

Testing

All 6 existing tests pass. No new warnings introduced.

…brary code

- Replace todo!() panics in FilterReturnType conversion with empty string coercion
- Fix grayscale filter calling invert() instead of grayscale_simple() on HSL
- Remove duplicate set_blue filter registration in main.rs
- Replace std::process::exit(1) with proper error propagation in format_hook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant