Skip to content

Commit

Permalink
Refactor uv python install
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Oct 29, 2024
1 parent 222cf26 commit 0598d60
Show file tree
Hide file tree
Showing 2 changed files with 224 additions and 124 deletions.
4 changes: 2 additions & 2 deletions crates/uv-python/src/downloads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ pub enum DownloadResult {
}

impl ManagedPythonDownload {
/// Return the first [`PythonDownload`] matching a request, if any.
/// Return the first [`ManagedPythonDownload`] matching a request, if any.
pub fn from_request(
request: &PythonDownloadRequest,
) -> Result<&'static ManagedPythonDownload, Error> {
Expand All @@ -433,7 +433,7 @@ impl ManagedPythonDownload {
.ok_or(Error::NoDownloadFound(request.clone()))
}

/// Iterate over all [`PythonDownload`]'s.
/// Iterate over all [`ManagedPythonDownload`]s.
pub fn iter_all() -> impl Iterator<Item = &'static ManagedPythonDownload> {
PYTHON_DOWNLOADS
.iter()
Expand Down
Loading

0 comments on commit 0598d60

Please sign in to comment.