Skip to content

Commit

Permalink
remove useless vec
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyandrews authored and slashrsm committed Apr 13, 2024
1 parent 8b414ce commit 4ddda5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/umami/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ pub fn random_words(count: usize, english: bool) -> Vec<String> {

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,
Expand Down
2 changes: 1 addition & 1 deletion examples/umami/english.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4ddda5e

Please sign in to comment.