Skip to content

Commit 3d0702d

Browse files
style(Maintain): remove spaces after colons in struct definitions and parameters
Standardize Rust code formatting across the Maintain build/orchestration system by removing spaces between colons and type annotations in struct field definitions and function parameters. This affects all modules in the Build and Run submodules, including CLI, Definition, Process, and supporting modules. Changes include: - `pub FieldName: Type` → `pub FieldName:Type` - `fn Name(&self, Param: Type)` → `fn Name(&self, Param:Type)` - Import statement reordering (std imports moved to top) No functional changes - purely cosmetic formatting to match project style conventions.
1 parent b35ba8e commit 3d0702d

30 files changed

Lines changed: 3648 additions & 3767 deletions

Source/Architecture.rs

Lines changed: 28 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,36 @@
77
#[derive(Debug, Clone, PartialEq, Eq)]
88
pub struct TargetArchitecture {
99
/// The full Rust target triple (e.g., "aarch64-apple-darwin").
10-
pub Triple: String,
10+
pub Triple:String,
1111
/// Human-readable platform name.
12-
pub Name: String,
12+
pub Name:String,
1313
/// Whether this architecture is supported for release builds.
14-
pub IsSupported: bool,
14+
pub IsSupported:bool,
1515
}
1616

1717
impl TargetArchitecture {
1818
/// Returns all supported target architectures.
1919
pub fn SupportedTargets() -> Vec<Self> {
2020
vec![
2121
Self {
22-
Triple: "aarch64-apple-darwin".to_string(),
23-
Name: "macOS (Apple Silicon)".to_string(),
24-
IsSupported: true,
22+
Triple:"aarch64-apple-darwin".to_string(),
23+
Name:"macOS (Apple Silicon)".to_string(),
24+
IsSupported:true,
2525
},
2626
Self {
27-
Triple: "x86_64-apple-darwin".to_string(),
28-
Name: "macOS (Intel)".to_string(),
29-
IsSupported: true,
27+
Triple:"x86_64-apple-darwin".to_string(),
28+
Name:"macOS (Intel)".to_string(),
29+
IsSupported:true,
3030
},
3131
Self {
32-
Triple: "x86_64-unknown-linux-gnu".to_string(),
33-
Name: "Linux (x86_64)".to_string(),
34-
IsSupported: true,
32+
Triple:"x86_64-unknown-linux-gnu".to_string(),
33+
Name:"Linux (x86_64)".to_string(),
34+
IsSupported:true,
3535
},
3636
Self {
37-
Triple: "x86_64-pc-windows-msvc".to_string(),
38-
Name: "Windows (x86_64)".to_string(),
39-
IsSupported: true,
37+
Triple:"x86_64-pc-windows-msvc".to_string(),
38+
Name:"Windows (x86_64)".to_string(),
39+
IsSupported:true,
4040
},
4141
]
4242
}
@@ -45,30 +45,30 @@ impl TargetArchitecture {
4545
pub fn Current() -> Self {
4646
#[cfg(all(target_arch = "aarch64", target_os = "macos"))]
4747
return Self {
48-
Triple: "aarch64-apple-darwin".to_string(),
49-
Name: "macOS (Apple Silicon)".to_string(),
50-
IsSupported: true,
48+
Triple:"aarch64-apple-darwin".to_string(),
49+
Name:"macOS (Apple Silicon)".to_string(),
50+
IsSupported:true,
5151
};
5252

5353
#[cfg(all(target_arch = "x86_64", target_os = "macos"))]
5454
return Self {
55-
Triple: "x86_64-apple-darwin".to_string(),
56-
Name: "macOS (Intel)".to_string(),
57-
IsSupported: true,
55+
Triple:"x86_64-apple-darwin".to_string(),
56+
Name:"macOS (Intel)".to_string(),
57+
IsSupported:true,
5858
};
5959

6060
#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
6161
return Self {
62-
Triple: "x86_64-unknown-linux-gnu".to_string(),
63-
Name: "Linux (x86_64)".to_string(),
64-
IsSupported: true,
62+
Triple:"x86_64-unknown-linux-gnu".to_string(),
63+
Name:"Linux (x86_64)".to_string(),
64+
IsSupported:true,
6565
};
6666

6767
#[cfg(all(target_arch = "x86_64", target_os = "windows"))]
6868
return Self {
69-
Triple: "x86_64-pc-windows-msvc".to_string(),
70-
Name: "Windows (x86_64)".to_string(),
71-
IsSupported: true,
69+
Triple:"x86_64-pc-windows-msvc".to_string(),
70+
Name:"Windows (x86_64)".to_string(),
71+
IsSupported:true,
7272
};
7373

7474
#[cfg(not(any(
@@ -77,10 +77,6 @@ impl TargetArchitecture {
7777
all(target_arch = "x86_64", target_os = "linux"),
7878
all(target_arch = "x86_64", target_os = "windows"),
7979
)))]
80-
return Self {
81-
Triple: "unknown".to_string(),
82-
Name: "Unknown".to_string(),
83-
IsSupported: false,
84-
};
80+
return Self { Triple:"unknown".to_string(), Name:"Unknown".to_string(), IsSupported:false };
8581
}
8682
}

0 commit comments

Comments
 (0)