Drop Provider API support in pre-1.81 nightlies

This commit is contained in:
David Tolnay 2024-11-05 19:26:24 -05:00
parent bf3d6f3f48
commit 2e99c515f3
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
2 changed files with 3 additions and 3 deletions

View file

@ -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)*