Skip to content

Conversation

@Fishrock123
Copy link
Member

This is handy for errors which are not Send + Sync + 'static.

Copy link
Member

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if from_error_lossy might a more descriptive naming, since "lossy" is only ever used as a suffix in the stdlib. But if that might be too confusing, it's fine as-is too.

@Fishrock123
Copy link
Member Author

@yoshuawuyts Is this more in line with what you'd hope for? Or is this straying to far from from_error_lossy?

@Fishrock123 Fishrock123 changed the title feat: add Error::from_lossy feat: add Error::from_display & from_debug Apr 6, 2021
This is handy for errors (or other structs) which are not `Send + Sync + 'static`.
@Fishrock123 Fishrock123 merged commit dab0f62 into http-rs:main Apr 7, 2021
@Fishrock123 Fishrock123 deleted the Error-from_lossy branch April 7, 2021 18:19
@Fishrock123 Fishrock123 mentioned this pull request Apr 15, 2021
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