agent: set edition = "2018" in .rustfmt.toml to fix rustfmt about async fn

Got:
find . -type f -name "*.rs"  | egrep -v "target/|grpc-rs/|protocols/" | xargs rustfmt --check

error[E0670]: `async fn` is not permitted in the 2015 edition

This commit fixes this issue.

Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
Tim Zhang 2021-01-11 14:20:53 +08:00
parent df68771e77
commit fe67f57c46

1
src/agent/.rustfmt.toml Normal file
View File

@ -0,0 +1 @@
edition = "2018"