dtolnay / dtolnay/thiserror

#[from] without implying #[source]

Open
#422 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
5.5k
Forks
213
PR merge metrics
No merged PRs in 30d

Description

If the source error contains borrowed data, it won't be able to be returned from `Error::source`, but it would still be nice to be able to derive the `From` implementation.

Unfortunately, it seems like there is no way to make `thiserror` do this.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.