diff --git a/src/common/pyproject.rs b/src/common/pyproject.rs index 6908949..f1df5b2 100644 --- a/src/common/pyproject.rs +++ b/src/common/pyproject.rs @@ -1,4 +1,3 @@ -use std::any::Any; use serde::{Deserialize, Serialize}; use std::collections::HashMap; diff --git a/src/polyglot/sdkman.rs b/src/polyglot/sdkman.rs index 73ec7ab..45df9db 100644 --- a/src/polyglot/sdkman.rs +++ b/src/polyglot/sdkman.rs @@ -12,7 +12,7 @@ pub fn is_available() -> bool { } pub fn init_env() { - let mut sdkmanrc_file = File::open(".sdkmanrc").unwrap(); + let sdkmanrc_file = File::open(".sdkmanrc").unwrap(); let sdkman_map = java_properties::read(BufReader::new(sdkmanrc_file)).unwrap(); let candidates_home = dirs::home_dir().unwrap().join(".sdkman").join("candidates"); //iterate over the sdkman_map @@ -37,7 +37,7 @@ pub fn init_env() { } pub fn diagnose() -> i32 { - let mut sdkmanrc_file = File::open(".sdkmanrc").unwrap(); + let sdkmanrc_file = File::open(".sdkmanrc").unwrap(); let sdkman_map = java_properties::read(BufReader::new(sdkmanrc_file)).unwrap(); let candidates_home = dirs::home_dir().unwrap().join(".sdkman").join("candidates"); let mut problems_count = 0; diff --git a/src/runners/poetry.rs b/src/runners/poetry.rs index a3eccfd..82d6175 100644 --- a/src/runners/poetry.rs +++ b/src/runners/poetry.rs @@ -1,7 +1,7 @@ use std::process::Output; use crate::errors::KeeperError; use crate::models::Task; -use crate::command_utils::{run_command, capture_command_output}; +use crate::command_utils::{run_command}; use crate::task; use error_stack::{Result}; use which::which; @@ -10,7 +10,7 @@ use crate::common::pyproject_toml_has_tool; pub fn is_available() -> bool { std::env::current_dir() - .map(|dir| pyproject_toml_has_tool("poetry")) + .map(|_dir| pyproject_toml_has_tool("poetry")) .unwrap_or(false) } diff --git a/src/runners/rye.rs b/src/runners/rye.rs index 8312594..ac0fda4 100644 --- a/src/runners/rye.rs +++ b/src/runners/rye.rs @@ -1,7 +1,7 @@ use std::process::Output; use crate::errors::KeeperError; use crate::models::Task; -use crate::command_utils::{run_command, capture_command_output}; +use crate::command_utils::{run_command}; use crate::task; use error_stack::{Result}; use which::which;