Skip to content

Commit 51a3223

Browse files
committed
Fix attribute on expression error
1 parent e379504 commit 51a3223

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

build.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,17 @@ fn parse_to_config(cfg: &mut BootloaderConfig, table: &toml::value::Table) {
6060
}
6161
("physical-memory-offset", Value::String(s)) => {
6262
#[cfg(feature = "map_physical_memory")]
63-
cfg.physical_memory_offset = Some(parse_aligned_addr(key.as_str(), &s));
63+
{
64+
cfg.physical_memory_offset = Some(parse_aligned_addr(key.as_str(), &s));
65+
}
6466

6567
#[cfg(not(feature = "map_physical_memory"))]
66-
panic!(
67-
"`physical-memory-offset` is only supported when the `map_physical_memory` \
68-
feature of the crate is enabled"
69-
);
68+
{
69+
panic!(
70+
"`physical-memory-offset` is only supported when the `map_physical_memory` \
71+
feature of the crate is enabled"
72+
);
73+
}
7074
}
7175
("kernel-stack-size", Value::Integer(i)) => {
7276
if i <= 0 {

0 commit comments

Comments
 (0)