Skip to content

Commit

Permalink
Call Provider::provide not Error::provide
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Oct 20, 2022
1 parent 3d2b6a3 commit 0b42fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use core::convert::Infallible;
use core::fmt::{self, Debug, Display, Write};

#[cfg(backtrace)]
use std::any::Demand;
use std::any::{Demand, Provider};

mod ext {
use super::*;
Expand Down Expand Up @@ -159,7 +159,7 @@ where

#[cfg(backtrace)]
fn provide<'a>(&'a self, demand: &mut Demand<'a>) {
self.error.provide(demand);
Provider::provide(&self.error, demand);
}
}

Expand Down

0 comments on commit 0b42fed

Please sign in to comment.