Skip to content

Commit 059aafd

Browse files
committed
Update to 2021 edition
1 parent 11dfe16 commit 059aafd

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["David Tolnay <[email protected]>"]
55
categories = ["asynchronous", "no-std"]
66
description = "Type erasure for async trait methods"
77
documentation = "https://docs.rs/async-trait"
8-
edition = "2018"
8+
edition = "2021"
99
keywords = ["async"]
1010
license = "MIT OR Apache-2.0"
1111
repository = "https://github.com/dtolnay/async-trait"

src/receiver.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use proc_macro2::{Group, Span, TokenStream, TokenTree};
2-
use std::iter::FromIterator;
32
use syn::visit_mut::{self, VisitMut};
43
use syn::{
54
Block, ExprPath, Ident, Item, Macro, Pat, PatIdent, Path, Receiver, Signature, Token, TypePath,

tests/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ pub mod issue89 {
873873
}
874874

875875
#[async_trait]
876-
impl Trait for Send + Sync {
876+
impl Trait for dyn Send + Sync {
877877
async fn f(&self) {}
878878
}
879879

0 commit comments

Comments
 (0)