presubmit: add cargo fmt check

This will automatically check rustfmt during 'repo upload'.

BUG=chromium:908640
TEST=repo upload
CQ-DEPEND=CL:1352648

Change-Id: I97911e00de2f25f0827c37b9715f7f77a504d2fa
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1351693
Reviewed-by: Zach Reizner <zachr@chromium.org>
This commit is contained in:
Daniel Verkamp 2018-11-27 15:25:03 -08:00 committed by chrome-bot
parent 8f3a232160
commit 35bac991e6

2
PRESUBMIT.cfg Normal file
View file

@ -0,0 +1,2 @@
[Hook Overrides]
cargo_fmt_check: true