Make GroupsPathError and MetadataRetrievalError enums non-exhaustive

This commit is contained in:
Oliver Hamlet
2025-05-16 19:00:54 +01:00
parent 7753962f55
commit eb238c4774
4 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -140,7 +140,7 @@ impl From<GroupsPathError> for VerboseError {
match value {
GroupsPathError::UndefinedGroup(g) => Self::UndefinedGroupError(g),
GroupsPathError::CycleFound(cycle) => Self::CyclicInteractionError(cycle),
GroupsPathError::PathfindingError(_) => Self::Other(Box::new(value)),
GroupsPathError::PathfindingError(_) | _ => Self::Other(Box::new(value)),
}
}
}
@@ -149,7 +149,7 @@ impl From<MetadataRetrievalError> for VerboseError {
fn from(value: MetadataRetrievalError) -> Self {
match value {
MetadataRetrievalError::ConditionEvaluationError(e) => e.into(),
MetadataRetrievalError::RegexError(_) => Self::Other(Box::new(value)),
MetadataRetrievalError::RegexError(_) | _ => Self::Other(Box::new(value)),
}
}
}