mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-28 12:45:26 +03:00
Prefer slice over vector reference in membership_failed
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
This commit is contained in:
parent
21c569d950
commit
2133756d50
@ -57,7 +57,7 @@ impl TypeAssertionError {
|
||||
///
|
||||
/// Given type is not a member of the set of expected types.
|
||||
///
|
||||
pub fn membership_failed(given: &Type, set: &Vec<Type>, span: &Span) -> Self {
|
||||
pub fn membership_failed(given: &Type, set: &[Type], span: &Span) -> Self {
|
||||
let message = format!(
|
||||
"Mismatched types. Given type `{}` is not in the expected type set `{:?}`.",
|
||||
given, set
|
||||
|
Loading…
Reference in New Issue
Block a user