diff --git a/rust/yarp/src/lib.rs b/rust/yarp/src/lib.rs index d51dbe41e95..1df92e8f4d8 100644 --- a/rust/yarp/src/lib.rs +++ b/rust/yarp/src/lib.rs @@ -318,10 +318,10 @@ mod tests { let node = result.node(); let upcast_node = node.as_program_node().unwrap().as_node(); - matches!(upcast_node, Node::ProgramNode { .. }); + assert!(matches!(upcast_node, Node::ProgramNode { .. })); let node = node.as_program_node().unwrap().statements().body().iter().next().unwrap(); let upcast_node = node.as_module_node().unwrap().as_node(); - matches!(upcast_node, Node::ModuleNode { .. }); + assert!(matches!(upcast_node, Node::ModuleNode { .. })); } }