From 6fd8d5e45e58d23e4ff49b34471f3482bfb7f9ea Mon Sep 17 00:00:00 2001 From: Didier Date: Mon, 17 Jul 2023 11:50:51 +0200 Subject: [PATCH] fix: cleanup code --- pkgr/src/commands/mod.rs | 6 +++--- pkgr/src/main.rs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgr/src/commands/mod.rs b/pkgr/src/commands/mod.rs index b5d698c..3c52aca 100644 --- a/pkgr/src/commands/mod.rs +++ b/pkgr/src/commands/mod.rs @@ -38,7 +38,7 @@ impl Command { match self { Command::Install { build, - package_identifier, + package_identifier: _, } => { if *build { error!("Build is not yet implemented."); @@ -46,10 +46,10 @@ impl Command { error!("Install is not yet implemented."); } } - Command::Remove { package_identifier } => { + Command::Remove { package_identifier: _ } => { error!("Remove is not yet implemented."); } - Command::List { installed } => { + Command::List { installed: _ } => { error!("List is not yet implemented."); } Command::Update => { diff --git a/pkgr/src/main.rs b/pkgr/src/main.rs index 50b9007..17e200f 100644 --- a/pkgr/src/main.rs +++ b/pkgr/src/main.rs @@ -1,9 +1,9 @@ use clap::Parser; -use std::env; -use std::process::exit; -use std::str::FromStr; -use crate::commands::{Cli, Command}; + + + +use crate::commands::{Cli}; use log::{info, SetLoggerError}; mod commands;