Skip to content

Commit

Permalink
Use display representation for download error
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jul 18, 2024
1 parent 622e9e8 commit d83cb69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions crates/uv-python/src/downloads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ pub enum Error {
InvalidRequestPlatform(#[from] platform::Error),
#[error("Cannot download managed Python for request: {0}")]
InvalidRequestKind(PythonRequest),
// TODO(zanieb): Implement display for `PythonDownloadRequest`
#[error("No download found for request: {0:?}")]
#[error("No download found for request: {0}")]
NoDownloadFound(PythonDownloadRequest),
}

Expand Down
2 changes: 1 addition & 1 deletion crates/uv/src/commands/python/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub(crate) async fn install(
.find(|installation| download_request.satisfied_by_key(installation.key()))
{
if matches!(request, PythonRequest::Any) {
writeln!(printer.stderr(), "Found: {}", installation.key().green(),)?;
writeln!(printer.stderr(), "Found: {}", installation.key().green())?;
} else {
writeln!(
printer.stderr(),
Expand Down

0 comments on commit d83cb69

Please sign in to comment.