Skip to content

Commit 520592b

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
fix build issue
1 parent 3c67783 commit 520592b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

osinfo/src/config.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,10 @@ impl OsInfo {
6767
_ => Bitness::Unknown,
6868
};
6969
let version = os_info.version().to_string();
70-
let name = Some(format!(
71-
"{:?} {} {}",
72-
family,
73-
version,
74-
architecture.as_deref().unwrap_or("")
7570
let name = Some(
7671
match &architecture {
77-
Some(arch) => format!("{:?} {} {}", family, version, arch),
78-
None => format!("{:?} {}", family, version),
72+
Some(arch) => format!("{family:?} {version} {arch}"),
73+
None => format!("{family:?} {version}"),
7974
}
8075
);
8176
Self {

0 commit comments

Comments
 (0)