Code cleanups

This commit is contained in:
Henrik Friedrichsen
2021-08-15 15:05:49 +02:00
parent 19d87f6b8f
commit 6b8e1d33dc
13 changed files with 38 additions and 44 deletions

View File

@@ -1,7 +1,6 @@
use crate::queue::RepeatSetting;
use std::collections::HashMap;
use std::fmt;
use std::iter::FromIterator;
use strum_macros::Display;
@@ -235,7 +234,7 @@ fn handle_aliases(input: &str) -> &str {
pub fn parse(input: &str) -> Option<Command> {
let components: Vec<_> = input.trim().split(' ').collect();
let command = handle_aliases(&components[0]);
let command = handle_aliases(components[0]);
let args = components[1..].to_vec();
match command {