Skip to content

Commit dba0c6b

Browse files
committed
remove async_trait from the site
1 parent 1e60664 commit dba0c6b

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

database/src/selector.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ use std::{
2727
sync::Arc,
2828
};
2929

30-
use async_trait::async_trait;
31-
3230
use crate::{
3331
interpolate::Interpolate, metric::Metric, ArtifactId, ArtifactIdIter, Benchmark,
3432
CodegenBackend, Connection, Index, Lookup, Profile, Scenario,
@@ -175,10 +173,10 @@ impl<TestCase, T> SeriesResponse<TestCase, T> {
175173
}
176174
}
177175

178-
#[async_trait]
179176
pub trait BenchmarkQuery: Debug + Clone {
180177
type TestCase: TestCase;
181178

179+
#[allow(async_fn_in_trait)]
182180
async fn execute(
183181
&self,
184182
connection: &mut dyn Connection,
@@ -241,7 +239,6 @@ impl Default for CompileBenchmarkQuery {
241239
}
242240
}
243241

244-
#[async_trait]
245242
impl BenchmarkQuery for CompileBenchmarkQuery {
246243
type TestCase = CompileTestCase;
247244

@@ -360,7 +357,6 @@ impl Default for RuntimeBenchmarkQuery {
360357
}
361358
}
362359

363-
#[async_trait]
364360
impl BenchmarkQuery for RuntimeBenchmarkQuery {
365361
type TestCase = RuntimeTestCase;
366362

site/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ snap = "1"
3232
itertools = "0.10"
3333
hashbrown = { version = "0.14", features = ["serde"] }
3434
arc-swap = "1.3"
35-
async-trait = "0.1"
3635
database = { path = "../database" }
3736
bytes = "1.0"
3837
url = "2"

0 commit comments

Comments
 (0)