Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 810c25ee authored by Thiébaud Weksteen's avatar Thiébaud Weksteen
Browse files

Use canonical version of rustfmt

Enable rustfmt repohook.

Test: repo upload
Change-Id: I9836672a755021c16b9f609cea147664f92bd6e5
parent ea59bc83
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3,8 +3,11 @@ ignore_merged_commits = true

[Builtin Hooks]
clang_format = true
rustfmt = true

[Builtin Hooks Options]
rustfmt = --config-path=rustfmt.toml

[Hook Scripts]
aosp_first = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} ".*$"
yapf_hook = ./tools/scripts/yapf_checker.py

rustfmt.toml

0 → 120000
+1 −0
Original line number Diff line number Diff line
../../build/soong/scripts/rustfmt.toml
 No newline at end of file

system/gd/rust/rustfmt.toml

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
edition = "2018"
#width_heuristics = "Max" uncomment out once main rustfmt supports this option
newline_style = "Unix"