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>
This commit is contained in:
Dylan Reid 2018-09-14 01:25:14 +00:00 committed by chrome-bot
parent 5e8406549f
commit 9fbac2cf59

2
.rustfmt.toml Normal file
View file

@ -0,0 +1,2 @@
use_field_init_shorthand = true
use_try_shorthand = true