Skip to content
Myr

Merge pull request #281 from dtolnay/redundantprovide

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

Remove redundant Backtrace provide_ref from ContextError

authored by David Tolnay · committed by GitHub · parents cccc785, 0b42fed · Browse files · 1 file+2 added−3 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−3 removed

  • other:+2 added−3 removed

1 file+2 added−3 removed

modified:src/context.rs+2 added-3 removed
2 unmodified lines
3use core::convert::Infallible;4use core::fmt::{self, Debug, Display, Write};56#[cfg(backtrace)]7use std::any::Demand;7use std::any::{Demand, Provider};89mod ext {10 use super::*;11
146 unmodified lines
158 }159160 #[cfg(backtrace)]161 fn provide<'a>(&'a self, demand: &mut Demand<'a>) {162 demand.provide_ref(self.error.backtrace());163 self.error.provide(demand);162 Provider::provide(&self.error, demand);163 }164}165166struct Quoted<C>(C);
27 unmodified lines