Skip to content
Myr

Less cryptic impl for as_dyn_error

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

authored by David Tolnay · committed by David Tolnay · parent 04931ad · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/error.rs+2 added-2 removed
79 unmodified lines
80 }8182 /// View this error object as the underlying error.83 pub fn as_dyn_error(&self) -> &(dyn StdError + Send + Sync + 'static) {84 &**self84 self.inner.error()85 }8687 /// View this error object as the underlying error, mutably.88 pub fn as_dyn_error_mut(&mut self) -> &mut (dyn StdError + Send + Sync + 'static) {89 &mut **self89 self.inner.error_mut()90 }9192 /// Get the backtrace for this Error.93 pub fn backtrace(&self) -> &Backtrace {
268 unmodified lines