diff options
author | Mike Frysinger <vapier@google.com> | 2023-06-22 18:57:16 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-06-22 18:57:16 +0000 |
commit | 5bc98c060ddc56fdbbe1691eed7fa8c5a61316e1 (patch) | |
tree | df45552228519740aa718de88862c83d854a9f94 | |
parent | e51cb4ea9754db409fa924210a2bd9fd510e4893 (diff) | |
parent | b1f4a748ae42aadf971f23f402951266e1318eb4 (diff) | |
download | repohooks-5bc98c060ddc56fdbbe1691eed7fa8c5a61316e1.tar.gz |
hooks: rustfmt: drop custom format suggestion am: b1f4a748ae
Original change: https://android-review.googlesource.com/c/platform/tools/repohooks/+/2621056
Change-Id: If9aebb9652fa531f05aa5a5fd753eb3c6ed7311c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | rh/hooks.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rh/hooks.py b/rh/hooks.py index c90c0a3..e5ca8eb 100644 --- a/rh/hooks.py +++ b/rh/hooks.py @@ -943,11 +943,9 @@ def check_rustfmt(project, commit, _desc, diff, options=None): # TODO(b/164111102): rustfmt stable does not support --check on stdin. # If no error is reported, compare stdin with stdout. if data != result.stdout: - msg = ('To fix, please run: ' + - rh.shell.cmd_to_str(cmd + [d.file])) ret.append(rh.results.HookResult( - 'rustfmt', project, commit, error=msg, - files=(d.file,))) + 'rustfmt', project, commit, error='Files not formatted', + files=(d.file,), fixup_cmd=cmd)) return ret |