mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-03 21:07:38 +03:00
Drop Provider API support in pre-1.81 nightlies
This commit is contained in:
parent
bf3d6f3f48
commit
2e99c515f3
2 changed files with 3 additions and 3 deletions
|
@ -4,8 +4,8 @@
|
|||
|
||||
#![feature(error_generic_member_access)]
|
||||
|
||||
use core::error::{Error, Request};
|
||||
use core::fmt::{self, Debug, Display};
|
||||
use std::error::{Error, Request};
|
||||
|
||||
struct MyError(Thing);
|
||||
struct Thing;
|
||||
|
|
|
@ -143,7 +143,7 @@ fn impl_struct(input: Struct) -> TokenStream {
|
|||
}
|
||||
};
|
||||
quote! {
|
||||
fn provide<'_request>(&'_request self, #request: &mut ::std::error::Request<'_request>) {
|
||||
fn provide<'_request>(&'_request self, #request: &mut ::core::error::Request<'_request>) {
|
||||
#body
|
||||
}
|
||||
}
|
||||
|
@ -377,7 +377,7 @@ fn impl_enum(input: Enum) -> TokenStream {
|
|||
}
|
||||
});
|
||||
Some(quote! {
|
||||
fn provide<'_request>(&'_request self, #request: &mut ::std::error::Request<'_request>) {
|
||||
fn provide<'_request>(&'_request self, #request: &mut ::core::error::Request<'_request>) {
|
||||
#[allow(deprecated)]
|
||||
match self {
|
||||
#(#arms)*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue