Skip to content

Commit 62cd5b4

Browse files
committed
chore: format current-main Rust files
1 parent 344f3e8 commit 62cd5b4

5 files changed

Lines changed: 24 additions & 6 deletions

File tree

crates/fbuild-build-esp/src/esp32/orchestrator/build.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,10 @@ impl BuildOrchestrator for Esp32Orchestrator {
614614
if params.clean_all {
615615
let _g = perf.phase("core-cache-remove");
616616
match std::fs::remove_dir_all(core_cache.path()) {
617-
Ok(()) => tracing::info!("removed framework core cache {}", core_cache.path().display()),
617+
Ok(()) => tracing::info!(
618+
"removed framework core cache {}",
619+
core_cache.path().display()
620+
),
618621
Err(error) if error.kind() == std::io::ErrorKind::NotFound => {}
619622
Err(error) => tracing::warn!(
620623
"failed to remove framework core cache {}: {}",

crates/fbuild-build-esp/src/esp32/orchestrator/framework_library_cache.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ mod tests {
254254

255255
let hydrated = tmp.path().join("hydrated");
256256
assert_eq!(cache.hydrate(&hydrated).unwrap(), 1);
257-
assert_eq!(std::fs::read(hydrated.join("libwifi.a")).unwrap(), b"archive");
257+
assert_eq!(
258+
std::fs::read(hydrated.join("libwifi.a")).unwrap(),
259+
b"archive"
260+
);
258261
assert!(cache.has_failed("matter"));
259262
cache.remove().unwrap();
260263
assert!(!cache.has_failed("matter"));

crates/fbuild-build-esp/src/esp32/orchestrator/framework_libs.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ pub(super) async fn compile_framework_builtin_libs(
105105
if params.clean_all {
106106
match framework_cache.remove() {
107107
Ok(()) => tracing::info!("removed ESP32 framework library cache"),
108-
Err(error) => tracing::warn!("failed to remove ESP32 framework library cache: {}", error),
108+
Err(error) => {
109+
tracing::warn!("failed to remove ESP32 framework library cache: {}", error)
110+
}
109111
}
110112
}
111113
match framework_cache.hydrate(&fw_libs_build_dir) {
@@ -260,7 +262,11 @@ pub(super) async fn compile_framework_builtin_libs(
260262
tracing::debug!("framework library {} failed to compile: {}", lib_name, e);
261263
record_failed_framework_lib(&failure_marker, &fw_signature, &e.to_string());
262264
if let Err(error) = framework_cache.record_failure(&lib_name) {
263-
tracing::warn!("failed to cache framework library failure {}: {}", lib_name, error);
265+
tracing::warn!(
266+
"failed to cache framework library failure {}: {}",
267+
lib_name,
268+
error
269+
);
264270
}
265271
}
266272
}

crates/fbuild-build-esp/src/esp32/orchestrator/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ mod cdc;
2828
mod embed;
2929
mod embed_stage;
3030
mod fingerprint;
31-
mod framework_libs;
3231
mod framework_library_cache;
32+
mod framework_libs;
3333
mod helpers;
3434
mod local_libs;
3535
mod packages;

crates/fbuild-cli/src/cli/dispatch.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,13 @@ pub async fn async_main() {
193193
}) => {
194194
let project_dir = resolve_project_dir(project_dir, &top_level_project_dir);
195195
if platformio {
196-
pio_build(&project_dir, environment.as_deref(), clean || clean_all, verbose).await
196+
pio_build(
197+
&project_dir,
198+
environment.as_deref(),
199+
clean || clean_all,
200+
verbose,
201+
)
202+
.await
197203
} else {
198204
run_build(
199205
project_dir,

0 commit comments

Comments
 (0)