Skip to content

Commit

Permalink
Fix generic arguments when requesting from a Provider (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
indietyp committed Jul 28, 2022
1 parent b850b02 commit a332220
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/libs/error-stack/src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ impl<C> Report<C> {
let provider = temporary_provider(&context);

#[cfg(all(nightly, feature = "std"))]
let backtrace = if core::any::request_ref::<Backtrace, _>(&provider)
.filter(|backtrace| backtrace.status() == BacktraceStatus::Captured)
let backtrace = if core::any::request_ref(&provider)
.filter(|backtrace: &&Backtrace| backtrace.status() == BacktraceStatus::Captured)
.is_some()
{
None
Expand All @@ -243,8 +243,8 @@ impl<C> Report<C> {
};

#[cfg(all(nightly, feature = "spantrace"))]
let span_trace = if core::any::request_ref::<SpanTrace, _>(&provider)
.filter(|span_trace| span_trace.status() == SpanTraceStatus::CAPTURED)
let span_trace = if core::any::request_ref(&provider)
.filter(|span_trace: &&SpanTrace| span_trace.status() == SpanTraceStatus::CAPTURED)
.is_some()
{
None
Expand Down

0 comments on commit a332220

Please sign in to comment.