Skip to content

Commit b162e90

Browse files
committed
修复代码格式,调整条件语句的结构以提高可读性
1 parent 8c28caf commit b162e90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ostool/src/config/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ impl ProjectConfig {
3838
let target = targets[select].clone();
3939
let mut build = BuildSystem::new_by_ui(workdir);
4040
let arch = Arch::from_target(&target).unwrap();
41-
if let BuildSystem::Cargo(args) = &mut build
42-
&& matches!(arch, Arch::Riscv64 | Arch::Aarch64)
43-
{
44-
args.kernel_is_bin = true;
41+
if let BuildSystem::Cargo(args) = &mut build {
42+
if matches!(arch, Arch::Riscv64 | Arch::Aarch64) {
43+
args.kernel_is_bin = true;
44+
}
4545
}
4646

4747
Self {

0 commit comments

Comments
 (0)