Skip to content

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented Jun 20, 2023

Removes the associated Encoding::Error type as well as Label::Error, using ssh_encoding::Error as the type.

The rationale is error customization is primarily useful for decoding, not encoding. This change is a simplification.

Adds a LabelError type which captures the invalid label when the alloc feature has been enabled for display purposes. This is used as the error type for FromStr impls, so invalid labels can be propagated properly.

@tarcieri tarcieri force-pushed the ssh-encoding/remove-encode-err-type-add-labelerror branch 3 times, most recently from 11b7ec0 to 458c014 Compare June 20, 2023 01:12
Removes the associated `Encoding::Error` type as well as `Label::Error`,
using `ssh_encoding::Error` as the type.

Adds a `LabelError` type which captures the invalid label when the
`alloc` feature has been enabled for display purposes. This is used as
the error type for `FromStr` impls, so invalid labels can be propagated
properly.
@tarcieri tarcieri force-pushed the ssh-encoding/remove-encode-err-type-add-labelerror branch from 458c014 to 35a5770 Compare June 20, 2023 01:15
@tarcieri tarcieri merged commit 9ae5c9b into master Jun 20, 2023
@tarcieri tarcieri deleted the ssh-encoding/remove-encode-err-type-add-labelerror branch June 20, 2023 03:04
@tarcieri tarcieri mentioned this pull request Aug 11, 2023
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.

2 participants