We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c2eabf commit d3640bcCopy full SHA for d3640bc
fdt-edit/src/node/mod.rs
@@ -550,8 +550,8 @@ impl<'a> From<fdt_raw::Node<'a>> for Node {
550
// 转换属性
551
for prop in raw_node.properties() {
552
// 特殊处理 reg 属性,需要 context 信息
553
- if prop.name() == "reg" {
554
- if let Some(reg_iter) = raw_node.reg() {
+ if prop.name() == "reg"
+ && let Some(reg_iter) = raw_node.reg() {
555
let entries = reg_iter
556
.map(|e| super::prop::Reg {
557
address: e.address,
@@ -565,7 +565,6 @@ impl<'a> From<fdt_raw::Node<'a>> for Node {
565
node.properties.push(prop);
566
continue;
567
}
568
- }
569
570
// 其他属性使用标准的 From 转换
571
let raw = super::prop::Property::from(prop);
0 commit comments