mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-06 14:27: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
|
@ -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