Skip to content

Commit a15bb45

Browse files
committed
unwrap -> expect
1 parent c5e5aea commit a15bb45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

svd-parser/src/expand.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ impl FieldPath {
128128
let name = v.pop().unwrap();
129129
let register = if !v.is_empty() {
130130
let (block, rname) = RegisterPath::parse_vec(v);
131-
Some(RegisterPath::new(block.unwrap(), rname))
131+
Some(RegisterPath::new(
132+
block.expect("Full qualifying field path is expected"),
133+
rname,
134+
))
132135
} else {
133136
None
134137
};

0 commit comments

Comments
 (0)