fix: fixed bug with no coverage showing twice

This commit is contained in:
felipegchi 2022-12-15 14:39:49 -03:00
parent 35f3f0000f
commit 917de25230

View File

@ -241,7 +241,8 @@ impl<'a> DesugarState<'a> {
}
if !unbound.is_empty() {
self.send_err(PassError::NoCoverage(range, unbound))
self.send_err(PassError::NoCoverage(range, unbound));
return desugared::Expr::err(range);
}
let motive = if let Some(res) = &match_.motive {