From 055bad3a46e383bf15245a8b0b4a75bf21064e93 Mon Sep 17 00:00:00 2001 From: projectmoon Date: Sat, 30 Jan 2021 22:12:44 +0000 Subject: [PATCH] Move a type on collect() to variable assignment --- src/commands/variables.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/variables.rs b/src/commands/variables.rs index 4ef0290..0f49cae 100644 --- a/src/commands/variables.rs +++ b/src/commands/variables.rs @@ -16,10 +16,10 @@ impl Command for GetAllVariablesCommand { let key = UserAndRoom(&ctx.username, &ctx.room.id.as_str()); let variables = ctx.db.variables.get_user_variables(&key)?; - let mut variable_list = variables + let mut variable_list: Vec = variables .into_iter() .map(|(name, value)| format!(" - {} = {}", name, value)) - .collect::>(); + .collect(); variable_list.sort();