Skip to content
Myr

Merge pull request #104 from dtolnay/from

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add impl From<anyhow::Error> for Box<dyn Error + Send>

authored by David Tolnay · committed by GitHub · parents bff844e, 44ee0f0 · Browse files · 1 file+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:src/error.rs+6 added
779 unmodified lines
780 }781 }782}783784impl From<Error> for Box<dyn StdError + Send + 'static> {785 fn from(error: Error) -> Self {786 Box::<dyn StdError + Send + Sync>::from(error)787 }788}789790impl From<Error> for Box<dyn StdError + 'static> {791 fn from(error: Error) -> Self {792 Box::<dyn StdError + Send + Sync>::from(error)793 }
15 unmodified lines