Skip to content

Commit e3dba5e

Browse files
committed
chore: M5 CI/Workflow Sweep - final synchronisation
1 parent 23ca6f8 commit e3dba5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/codegen/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ mod tests {
166166
pragmas: vec!["exportc".into(), "cdecl".into()],
167167
doc: "Say hello.".into(),
168168
};
169-
let proc = parse_function(&func).unwrap();
169+
let proc = parse_function(&func).expect("TODO: handle error");
170170
assert_eq!(proc.name, "greet");
171171
assert_eq!(proc.params.len(), 1);
172172
assert_eq!(proc.return_type, Some(NimType::Primitive("cstring".into())));
@@ -183,7 +183,7 @@ mod tests {
183183
pragmas: vec!["exportc".into()],
184184
doc: String::new(),
185185
};
186-
let proc = parse_function(&func).unwrap();
186+
let proc = parse_function(&func).expect("TODO: handle error");
187187
assert!(proc.return_type.is_none());
188188
assert!(proc.doc.is_none());
189189
}

0 commit comments

Comments
 (0)