Skip to content

Commit eaea0e4

Browse files
author
anduril-pd
committed
formatting
1 parent 1fe0ecb commit eaea0e4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

mirrord/config/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ pub struct LayerConfig {
227227
/// "debugserver"]`
228228
#[config(env = "MIRRORD_SKIP_BUILD_TOOLS", default = true)]
229229
pub skip_build_tools: bool,
230-
230+
231231
/// ## skip_extra_build_tools {#root-skip_build_tools}
232232
///
233233
/// Same as skip_build_tools but allows for skipping custom build tools.

mirrord/layer/src/load.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ static BUILD_TOOL_PROCESSES: LazyLock<HashSet<&'static str>> = LazyLock::new(||
4040
});
4141

4242
static COMBINED_BUILD_TOOLS: LazyLock<HashSet<String>> = LazyLock::new(|| {
43-
let mut combined = BUILD_TOOL_PROCESSES.iter().map(|&s| s.to_string()).collect::<HashSet<String>>();
43+
let mut combined = BUILD_TOOL_PROCESSES
44+
.iter()
45+
.map(|&s| s.to_string())
46+
.collect::<HashSet<String>>();
4447
if let Ok(extra_tools) = env::var("MIRRORD_SKIP_EXTRA_BUILD_TOOLS") {
4548
combined.extend(extra_tools.split(';').map(|s| s.trim().to_string()));
4649
}
@@ -93,7 +96,7 @@ impl ExecuteArgs {
9396
}
9497

9598
fn is_build_tool(&self) -> bool {
96-
COMBINED_BUILD_TOOLS.contains(self.exec_name.as_str())
99+
COMBINED_BUILD_TOOLS.contains(self.exec_name.as_str())
97100
|| COMBINED_BUILD_TOOLS.contains(self.invoked_as.as_str())
98101
}
99102

0 commit comments

Comments
 (0)