Skip to content

Clean up unnecessary error variants#4

Open
macladson wants to merge 1 commit intomainfrom
tidy-error
Open

Clean up unnecessary error variants#4
macladson wants to merge 1 commit intomainfrom
tidy-error

Conversation

@macladson
Copy link
Member

Both the InvalidUrl and RedactError error variants are technically unreachable since we check has_host before trying any operations that could fail. Those operations should be infallible after the check.

I've consolidated the error types to a single Redact variant which signals that we hit an unexpected edge case.

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