Skip to content

Commit 0c2fbb1

Browse files
committed
remove async_trait attribute that is not related to dynamic dispatch
1 parent 1e60664 commit 0c2fbb1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

0 commit comments

Comments
 (0)