Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Specify edition in rustfmt.yml
Browse files Browse the repository at this point in the history
This change is to fix the error `[E0670]: async fn is not permitted in the 2015 edition` when using Vim with rust-analyzer.

Ref: rust-lang/rust-analyzer#1959
  • Loading branch information
liuchengxu committed Oct 22, 2021
1 parent e0324c5 commit 47686bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
edition = "2021"
ignore = [
# This is where Substrate sources with custom formatting are, don't touch them
"/substrate",
Expand Down

0 comments on commit 47686bc

Please sign in to comment.