Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantinos Athanasiou committed Jan 9, 2025
1 parent 057c1e2 commit 5532851
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions protypo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,7 @@ async fn download_and_extract_to_temp(url: Url) -> Result<PathBuf, io::Error> {

let cursor = Cursor::new(bytes);
if std::path::Path::new(&url.to_string())
.extension()
.map_or(false, |ext| ext.eq_ignore_ascii_case("zip"))
.extension().is_some_and(|ext| ext.eq_ignore_ascii_case("zip"))
|| url.to_string().ends_with(".tar.gz")
{
let mut zip = ZipArchive::new(cursor)?;
Expand Down

0 comments on commit 5532851

Please sign in to comment.