Skip to content

Avoid leaking inner error types #873

@jessebraham

Description

@jessebraham

See the "Common mistake: inner error type leakage" section of this blog post for more information:
https://d34dl0ck.me/rust-bites-designing-error-types-in-rust-libraries/index.html

Given the relatively small amount of effort required, I think it's worth doing this. We can create a type alias for the Box< .. > mess and just use that everywhere that we are currently leaking error types.

This is only applicable to library errors, but may be worth just doing everywhere. Less concerned about the CLI errors.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions