mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-22 20:45:25 +00:00
Bump MSRV to 1.85 and Edition 2024 (#13516)
## Summary Builds on https://github.com/astral-sh/uv/pull/11724. Closes https://github.com/astral-sh/uv/issues/13476.
This commit is contained in:
parent
cc6e766232
commit
c5032aee80
240 changed files with 726 additions and 737 deletions
|
|
@ -10,7 +10,7 @@ use uv_normalize::PackageName;
|
|||
use uv_redacted::redacted_url;
|
||||
|
||||
use crate::middleware::OfflineError;
|
||||
use crate::{html, FlatIndexError};
|
||||
use crate::{FlatIndexError, html};
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
#[error(transparent)]
|
||||
|
|
@ -46,7 +46,7 @@ impl Error {
|
|||
|
||||
/// Returns `true` if this error corresponds to an I/O "not found" error.
|
||||
pub(crate) fn is_file_not_exists(&self) -> bool {
|
||||
let ErrorKind::Io(ref err) = &*self.kind else {
|
||||
let ErrorKind::Io(err) = &*self.kind else {
|
||||
return false;
|
||||
};
|
||||
matches!(err.kind(), std::io::ErrorKind::NotFound)
|
||||
|
|
@ -246,7 +246,9 @@ pub enum ErrorKind {
|
|||
#[error("Writing to cache archive failed: {0}")]
|
||||
ArchiveWrite(String),
|
||||
|
||||
#[error("Network connectivity is disabled, but the requested data wasn't found in the cache for: `{0}`")]
|
||||
#[error(
|
||||
"Network connectivity is disabled, but the requested data wasn't found in the cache for: `{0}`"
|
||||
)]
|
||||
Offline(String),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue