allergies: Use &[T] instead of &Vec<T> for signatures
Clippy suggested:
writing `&Vec<_>` instead of `&[_]` involves one more reference and
cannot be used with non-Vec-based slices.
@@ -2,7 +2,7 @@ extern crate allergies;
use allergies::*;
-fn compare_allergy_vectors(expected: &Vec<Allergen>, actual: &Vec<Allergen>) {
+fn compare_allergy_vectors(expected: &[Allergen], actual: &[Allergen]) {
for element in expected {
if !actual.contains(element) {
panic!("Allergen missing\n {:?} should be in {:?}",
