Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaBatty committed Jun 19, 2024
1 parent 68d2782 commit e8baf67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ component = { path = "component" }
dirs = "4"
flate2 = "1"
indicatif = "0.17.7"
rayon = "1.5"
semver = { version = "1", features = ["serde"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand Down
7 changes: 3 additions & 4 deletions src/ops/fuelup_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use crate::{
use ansiterm::Color;
use anyhow::Result;
use component::{self, Components};
use rayon::prelude::*;
use semver::Version;
use std::{
cmp::Ordering::{Equal, Greater, Less},
Expand Down Expand Up @@ -91,11 +90,11 @@ fn check_toolchain(toolchain: &str, verbose: bool) -> Result<()> {
let dist_channel = Channel::from_dist_channel(&description)?;
let latest_package_versions = collect_package_versions(dist_channel);
let toolchain = Toolchain::new(toolchain)?;
info!("{}", bold(&toolchain.name));
info!("{}: {}", bold("Toolchain: "), &toolchain.name);

let components = Components::collect_exclude_plugins()?;
let plugins = component::Components::collect_plugins()?;
components.par_iter().for_each(|component| {
components.iter().for_each(|component| {
if let Some(latest_version) = latest_package_versions.get(&component.name) {
let component_executable = toolchain.bin_path.join(&component.name);
let version_text = match get_bin_version(&component_executable) {
Expand All @@ -106,7 +105,7 @@ fn check_toolchain(toolchain: &str, verbose: bool) -> Result<()> {
info!("{:>2}{} - {}", "", bold(&component.name), version_text);
}
if component.name == component::FORC {
plugins.par_iter().for_each(|plugin| {
plugins.iter().for_each(|plugin| {
if !plugin.is_main_executable() {
info!("{:>4}- {}", "", bold(&plugin.name));
}
Expand Down

0 comments on commit e8baf67

Please sign in to comment.