Skip to content

Commit

Permalink
Merge pull request #11 from gursi26/remove_update
Browse files Browse the repository at this point in the history
cleaned up unnecessary imports in remove.rs
  • Loading branch information
gursi26 committed Mar 6, 2024
2 parents 236f4d0 + 4ae1ea9 commit 0619289
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/actions/remove.rs
@@ -1,11 +1,9 @@
use crate::actions::{play, remove};
use crate::args::RemoveArgs;
use crate::config::UserConfig;
use std::io::{stdout, Write, stdin};
use mprs::utils::{print_table, list_dir};
use std::fs::remove_file;
use std::io;
use std::path::{Path, PathBuf};
use std::path::Path;

pub fn mprs_remove(args: &RemoveArgs, config: &UserConfig)
{
Expand Down Expand Up @@ -112,7 +110,7 @@ pub fn mprs_remove(args: &RemoveArgs, config: &UserConfig)
let mut input_string = String::new();
print!("Select song to remove by number : ");
let _ = stdout().flush();
std::io::stdin().read_line(&mut input_string).unwrap();
stdin().read_line(&mut input_string).unwrap();
// Convert user input to i32 and store in id_idx.
id_idx = input_string.trim().parse().unwrap();

Expand Down

0 comments on commit 0619289

Please sign in to comment.