Skip to content

Commit 95a2a6e

Browse files
committed
Clippy
1 parent dfaf3bd commit 95a2a6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/uv-python/src/downloads.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,12 @@ impl ManagedPythonDownload {
558558
Ok(file) => file,
559559
Err(e) => {
560560
// Windows paths can also be valid URLs
561-
if Url::parse(json_source).is_ok() {
562-
return Err(Error::RemoteJSONNotSupported());
561+
return if Url::parse(json_source).is_ok() {
562+
Err(Error::RemoteJSONNotSupported())
563563
} else {
564564
Err(Error::Io(e))
565-
}
566-
}?,
565+
};
566+
}
567567
};
568568

569569
serde_json::from_reader(file)

0 commit comments

Comments
 (0)