From 9fbac2cf59eb87bff7ab423076d63a6b89c91bd8 Mon Sep 17 00:00:00 2001 From: Dylan Reid Date: Fri, 14 Sep 2018 01:25:14 +0000 Subject: [PATCH] Add basic rustfmt config Enable two optional features: - Swapping try for '?' - Shortening "name = name," to "name," in member initialization. Signed-off-by: Dylan Reid Change-Id: I8e29eb01f10451cd2a549a699de07f651cc4af0f Reviewed-on: https://chromium-review.googlesource.com/1226224 Reviewed-by: Zach Reizner --- .rustfmt.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .rustfmt.toml diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000000..a2db301240 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,2 @@ +use_field_init_shorthand = true +use_try_shorthand = true