mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-20 11:56:03 +00:00
Update Rust toolchain to 1.89 (#15157)
## Summary Bumps Rust toolchain to 1.89, but not the MSRV. Lifetime changes is related to a new lint rule explained in https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/#mismatched-lifetime-syntaxes-lint ## Test Plan Existing Tests
This commit is contained in:
parent
8f71d239f8
commit
57df0146e2
37 changed files with 83 additions and 81 deletions
|
|
@ -564,17 +564,17 @@ pub struct RedirectClientWithMiddleware {
|
|||
|
||||
impl RedirectClientWithMiddleware {
|
||||
/// Convenience method to make a `GET` request to a URL.
|
||||
pub fn get<U: IntoUrl>(&self, url: U) -> RequestBuilder {
|
||||
pub fn get<U: IntoUrl>(&self, url: U) -> RequestBuilder<'_> {
|
||||
RequestBuilder::new(self.client.get(url), self)
|
||||
}
|
||||
|
||||
/// Convenience method to make a `POST` request to a URL.
|
||||
pub fn post<U: IntoUrl>(&self, url: U) -> RequestBuilder {
|
||||
pub fn post<U: IntoUrl>(&self, url: U) -> RequestBuilder<'_> {
|
||||
RequestBuilder::new(self.client.post(url), self)
|
||||
}
|
||||
|
||||
/// Convenience method to make a `HEAD` request to a URL.
|
||||
pub fn head<U: IntoUrl>(&self, url: U) -> RequestBuilder {
|
||||
pub fn head<U: IntoUrl>(&self, url: U) -> RequestBuilder<'_> {
|
||||
RequestBuilder::new(self.client.head(url), self)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -297,7 +297,10 @@ impl RegistryClient {
|
|||
}
|
||||
|
||||
/// Return the appropriate index URLs for the given [`PackageName`].
|
||||
fn index_urls_for(&self, package_name: &PackageName) -> impl Iterator<Item = IndexMetadataRef> {
|
||||
fn index_urls_for(
|
||||
&self,
|
||||
package_name: &PackageName,
|
||||
) -> impl Iterator<Item = IndexMetadataRef<'_>> {
|
||||
self.torch_backend
|
||||
.as_ref()
|
||||
.and_then(|torch_backend| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue