diff --git a/examples/umami/common.rs b/examples/umami/common.rs index dc90af29..00b7ccc6 100644 --- a/examples/umami/common.rs +++ b/examples/umami/common.rs @@ -383,7 +383,7 @@ pub fn random_words(count: usize, english: bool) -> Vec { for _ in 0..count { // Randomly select a content type, favoring articles and recipes. - let content_types = vec![ + let content_types = [ ContentType::Article, ContentType::Article, ContentType::Article, diff --git a/examples/umami/english.rs b/examples/umami/english.rs index 34d8ce15..3c72330e 100644 --- a/examples/umami/english.rs +++ b/examples/umami/english.rs @@ -61,7 +61,7 @@ pub async fn basic_page_en(user: &mut GooseUser) -> TransactionResult { /// Load a random node by nid in English and all static assets found on the page. pub async fn page_by_nid(user: &mut GooseUser) -> TransactionResult { // Randomly select a content type. - let content_types = vec![ + let content_types = [ common::ContentType::Article, common::ContentType::BasicPage, common::ContentType::Recipe,