Skip to content

Commit 1b3c290

Browse files
committed
Small simplification
1 parent 5ebcaa1 commit 1b3c290

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

build.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,13 @@ mod binary {
242242

243243
if manifest
244244
.get("dependencies")
245-
.and_then(|d| {
246-
d.get("bootloader").or_else(|| {
247-
manifest
248-
.get("target")
249-
.and_then(|table| table.get(r#"cfg(target_arch = "x86_64")"#))
250-
.and_then(|table| table.get("dependencies"))
251-
.and_then(|table| table.get("bootloader"))
252-
})
245+
.and_then(|d| d.get("bootloader"))
246+
.or_else(|| {
247+
manifest
248+
.get("target")
249+
.and_then(|table| table.get(r#"cfg(target_arch = "x86_64")"#))
250+
.and_then(|table| table.get("dependencies"))
251+
.and_then(|table| table.get("bootloader"))
253252
})
254253
.is_some()
255254
{

0 commit comments

Comments
 (0)