style library/core/src/error.rs
This commit is contained in:
parent
4cdd20584c
commit
624f9d3c78
1 changed files with 1 additions and 0 deletions
|
@ -183,6 +183,7 @@ pub trait Error: Debug + Display {
|
||||||
#[allow(unused_variables)]
|
#[allow(unused_variables)]
|
||||||
fn provide<'a>(&'a self, request: &mut Request<'a>) {}
|
fn provide<'a>(&'a self, request: &mut Request<'a>) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
mod private {
|
mod private {
|
||||||
// This is a hack to prevent `type_id` from being overridden by `Error`
|
// This is a hack to prevent `type_id` from being overridden by `Error`
|
||||||
// implementations, since that can enable unsound downcasting.
|
// implementations, since that can enable unsound downcasting.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue