mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 10:10:41 +00:00
bin/fmt: Set rustfmt edition to 2018
The default is 2015 and that causes any usage of `async` to cause kokoro errors. Change-Id: I9f962b6f578b0d1992377dfefdd724c080a6f1b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2024365 Reviewed-by: Stephen Barber <smbarber@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Tested-by: Dylan Reid <dgreid@chromium.org> Commit-Queue: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
parent
8488a0bbbb
commit
7e24a8e759
1 changed files with 1 additions and 1 deletions
2
bin/fmt
2
bin/fmt
|
@ -26,4 +26,4 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
|
|||
# Jump up to root directory of crosvm repo.
|
||||
cd ..
|
||||
|
||||
find . -name '*.rs' -print0 | grep -vz '^./target/' | xargs -0 rustfmt "$@" --
|
||||
find . -name '*.rs' -print0 | grep -vz '^./target/' | xargs -0 rustfmt --edition=2018 "$@" --
|
||||
|
|
Loading…
Reference in a new issue