Skip to content

Commit

Permalink
Consistently use async_trait via import
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 19, 2020
1 parent 674e051 commit 67e0d76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -942,9 +942,10 @@ mod issue106 {
mod issue110 {
#![deny(clippy::all)]

use async_trait::async_trait;
use std::marker::PhantomData;

#[async_trait::async_trait]
#[async_trait]
pub trait Loader {
async fn load(&self, key: &str);
}
Expand All @@ -953,7 +954,7 @@ mod issue110 {
marker: PhantomData<&'a ()>,
}

#[async_trait::async_trait]
#[async_trait]
impl Loader for AwsEc2MetadataLoader<'_> {
async fn load(&self, _key: &str) {}
}
Expand Down

0 comments on commit 67e0d76

Please sign in to comment.