summaryrefslogtreecommitdiff
path: root/system/rust/build.rs
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 /system/rust/build.rs
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 'system/rust/build.rs')
-rw-r--r--system/rust/build.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/rust/build.rs b/system/rust/build.rs
index bae31cdcaa..08cb84c6a2 100644
--- a/system/rust/build.rs
+++ b/system/rust/build.rs
@@ -2,7 +2,10 @@
//!
//! Run `cargo install --path .` in `external/rust/crates/pdl-compiler` to ensure `pdlc`
//! is in your path.
-use std::{env, fs::File, io::Write, path::Path};
+use std::env;
+use std::fs::File;
+use std::io::Write;
+use std::path::Path;
fn main() {
let out_dir = env::var_os("OUT_DIR").unwrap();