Skip to content
Myr

Call Provider::provide not Error::provide

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 3d2b6a3 · 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/context.rs+2 added-2 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 self.error.provide(demand);162 Provider::provide(&self.error, demand);163 }164}165166struct Quoted<C>(C);
27 unmodified lines