Skip to content
Myr

Link to Context trait from Error::context method

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 4119806 · Browse files · 1 file+4 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+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:src/error.rs+4 added
70 unmodified lines
71 }72 }7374 /// Wrap the error value with additional context.75 ///76 /// For attaching context to a `Result` as it is propagated, the77 /// [`Context`][crate::Context] extension trait may be more convenient than78 /// this function.79 pub fn context<C>(self, context: C) -> Self80 where81 C: Display + Send + Sync + 'static,82 {
290 unmodified lines