Skip to content

Commit

Permalink
misc: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nichmor committed Dec 23, 2024
1 parent a6499dd commit e3e6fa3
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions crates/rattler_package_streaming/benches/extract.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
use std::{
time::Duration,
};
use std::time::Duration;

use rattler_package_streaming::{reqwest::tokio::extract_tar_bz2, ExtractError, ExtractResult};
use reqwest::Client;
use reqwest_middleware::ClientWithMiddleware;
use tempfile::TempDir;
use url::Url;


use criterion::{criterion_group, criterion_main, Criterion};

enum TarUrls{
enum TarUrls {
Python,

Check failure on line 12 in crates/rattler_package_streaming/benches/extract.rs

View workflow job for this annotation

GitHub Actions / Format and Lint

variants `Python` and `Boltons` are never constructed
Bat,
Boltons
Boltons,
}

impl TarUrls {
Expand Down Expand Up @@ -55,10 +52,9 @@ fn criterion_benchmark(c: &mut Criterion) {
let rt = tokio::runtime::Runtime::new().unwrap();

c.bench_function("extract tars", |b| {
b.to_async(&rt)
.iter(|| async {
extract_tar(TarUrls::Bat).await.unwrap();
});
b.to_async(&rt).iter(|| async {
extract_tar(TarUrls::Bat).await.unwrap();
});
});
}

Expand Down

0 comments on commit e3e6fa3

Please sign in to comment.