diff --git a/src/utils/metadata.rs b/src/utils/metadata.rs index 0bf3606..80ba9c5 100644 --- a/src/utils/metadata.rs +++ b/src/utils/metadata.rs @@ -159,5 +159,5 @@ pub fn get<'a>(root: &'a AstNode<'a>, mtype: MType) -> MFile { }, }) .next() - .unwrap() + .unwrap_or_default() }