From 56b94e200cc24541895ba18ec10e460e1d75c080 Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Mon, 11 Jan 2021 14:20:53 +0800 Subject: [PATCH] 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 --- src/agent/.rustfmt.toml | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/agent/.rustfmt.toml diff --git a/src/agent/.rustfmt.toml b/src/agent/.rustfmt.toml new file mode 100644 index 0000000000..32a9786fa1 --- /dev/null +++ b/src/agent/.rustfmt.toml @@ -0,0 +1 @@ +edition = "2018"