Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaBatty committed Jun 20, 2024
1 parent 9e0f032 commit fb32aef
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/ops/fuelup_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::{
toolchain::{DistToolchainDescription, Toolchain},
};
use ansiterm::Color;
use anyhow::{anyhow, Result};
use anyhow::Result;
use component::{self, Components};
use semver::Version;
use std::{
Expand Down Expand Up @@ -114,10 +114,11 @@ fn check_toolchain(toolchain: &str, verbose: bool) -> Result<()> {
let mut plugin_name = &plugin.name;
if !plugin.is_main_executable() {
print!("{:>2}", "");
plugin_name = plugin
.executables
.get(index)
.ok_or_else(|| anyhow!("Plugin name not found"))?;
if let Some(exe_name) = plugin.executables.get(index) {
plugin_name = exe_name;
} else {
error!("Plugin name not found");
}
}
let maybe_latest_version = plugin.publish.map_or_else(
|| latest_package_versions.get(component::FORC),
Expand Down

0 comments on commit fb32aef

Please sign in to comment.