Move a type on collect() to variable assignment
continuous-integration/drone/push Build is failing Details

This commit is contained in:
projectmoon 2021-01-30 22:12:44 +00:00
parent 16eb87e50f
commit 055bad3a46
1 changed files with 2 additions and 2 deletions

View File

@ -16,10 +16,10 @@ impl Command for GetAllVariablesCommand {
let key = UserAndRoom(&ctx.username, &ctx.room.id.as_str()); let key = UserAndRoom(&ctx.username, &ctx.room.id.as_str());
let variables = ctx.db.variables.get_user_variables(&key)?; let variables = ctx.db.variables.get_user_variables(&key)?;
let mut variable_list = variables let mut variable_list: Vec<String> = variables
.into_iter() .into_iter()
.map(|(name, value)| format!(" - {} = {}", name, value)) .map(|(name, value)| format!(" - {} = {}", name, value))
.collect::<Vec<_>>(); .collect();
variable_list.sort(); variable_list.sort();