This website requires JavaScript.
Explore
Help
Sign in
mirrors
/
crosvm
Watch
1
Star
0
Fork
You've already forked crosvm
0
mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced
2024-11-25 05:03:05 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
121e33246b
crosvm
/
.rustfmt.toml
4 lines
74 B
TOML
Raw
Normal View
History
Unescape
Escape
Add basic rustfmt config Enable two optional features: - Swapping try for '?' - Shortening "name = name," to "name," in member initialization. Signed-off-by: Dylan Reid <dgreid@chromium.org> Change-Id: I8e29eb01f10451cd2a549a699de07f651cc4af0f Reviewed-on: https://chromium-review.googlesource.com/1226224 Reviewed-by: Zach Reizner <zachr@chromium.org>
2018-09-14 01:25:14 +00:00
use_field_init_shorthand
=
true
use_try_shorthand
=
true
rustfmt.toml: Use 2018 edition rustfmt uses 2015 edition by default in which async functions cannot be formatted well. So, we should specify 2018 explicitly. BUG=none TEST=cargo fmt Change-Id: Iaa604c78d028c5abeaab87a62ea39ee65e8aae14 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2683937 Tested-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
2021-02-09 09:19:11 +00:00
edition
=
"2018"
Reference in a new issue
Copy permalink