Skip to content

refactor(error): conver error types to enums - #37

Merged
weihanglo merged 7 commits into
git-format-patchfrom
err
Feb 3, 2026
Merged

refactor(error): conver error types to enums#37
weihanglo merged 7 commits into
git-format-patchfrom
err

Conversation

@weihanglo

Copy link
Copy Markdown
Owner

Including

  • ParsePatchError
  • BinaryPatchParseError
  • PatchSetParseError

Move each error type to its own `error.rs` file within the respective
module for better organization.
Replace the Cow-based ParsePatchError with a proper enum that has
specific variants for each error case
Replace the Cow-based BinaryPatchParseError with a proper enum.
Convert PatchSetParseError from a Cow<'static, str> wrapper to a proper
enum with specific variants for each error case.
@weihanglo
weihanglo merged commit 0e33a57 into git-format-patchFeb 3, 2026
14 checks passed
@weihanglo
weihanglo deleted the err branch February 3, 2026 16:43
@weihangloweihanglo mentioned this pull request Feb 3, 2026
24 tasks
Sign up for freeto 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

@weihanglo