summaryrefslogtreecommitdiff
path: root/rustfmt.toml
diff options
context:
space:
mode:
author Chris Suter <csuter@google.com> 2025-02-13 12:48:43 +1100
committer Chris Suter <csuter@google.com> 2025-02-12 18:30:26 -0800
commit5395d25d4287a208a3ab1a9ce6a11f3447ffd1e3 (patch)
treec3c01bff43afa5195eefca5ffbbb71982a7d1574 /rustfmt.toml
parent8388cbe97c1854014348dd9c70688a3d208acbef (diff)
system/rust: Set imports_granularity rustfmt option to Module
This matches the Fuchsia style. See https://fxbug.dev/340943530 for rationale. I've also reformatted all Rust files under system/rust with this style as there seemed to be some inconsistencies. Fix: 396241824 Test: m com.android.btservices Flag: EXEMPT refactor only Change-Id: I74425bfbe98a402fa5f9fd5f1746a00b9767a321
Diffstat (limited to 'rustfmt.toml')
-rw-r--r--rustfmt.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/rustfmt.toml b/rustfmt.toml
index 05a76b507b..deeeb145aa 100644
--- a/rustfmt.toml
+++ b/rustfmt.toml
@@ -7,3 +7,4 @@
edition = "2021"
use_small_heuristics = "Max"
newline_style = "Unix"
+imports_granularity = "Module"