Skip to content

Commit

Permalink
Format some test macros
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 8, 2020
1 parent 3626f77 commit 43d8b10
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,7 @@ pub mod issue46 {
implement_commands_workaround!(K: Send);

macro_rules! implement_commands {
(
$tyargs:ident : $ty:ident
) => {
($tyargs:ident : $ty:ident) => {
#[async_trait]
pub trait AsyncCommands2: Sized {
async fn f<$tyargs: $ty>(&mut self, x: $tyargs) {
Expand All @@ -582,7 +580,7 @@ pub mod issue46 {
};
}

implement_commands! { K: Send }
implement_commands!(K: Send);
}

// https://github.com/dtolnay/async-trait/issues/53
Expand Down Expand Up @@ -883,6 +881,7 @@ pub mod issue92 {
}
}

// https://github.com/dtolnay/async-trait/issues/104
mod issue104 {
use async_trait::async_trait;

Expand All @@ -892,7 +891,7 @@ mod issue104 {
}

macro_rules! impl_t1 {
($ty: ty, $id: expr) => {
($ty:ty, $id:expr) => {
#[async_trait]
impl T1 for $ty {
async fn id(&self) -> i32 {
Expand Down

0 comments on commit 43d8b10

Please sign in to comment.