We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 87c268a + 8877ee0 commit 942d440Copy full SHA for 942d440
1 file changed
src/main.rs
@@ -65,12 +65,12 @@ fn resolve_run_plan(target: &Target, cli: &Cli) -> Result<RunPlan> {
65
}
66
67
fn resolve_unspecified(target: &Target, cli: &Cli) -> Result<RunPlan> {
68
- if !cli.force {
69
- if let Some(installed) = latest_installed(&target.binary)? {
70
- return Ok(RunPlan::UseInstalled {
71
- path: installed.path,
72
- });
73
- }
+ if !cli.force
+ && let Some(installed) = latest_installed(&target.binary)?
+ {
+ return Ok(RunPlan::UseInstalled {
+ path: installed.path,
+ });
74
75
76
let version = fetch_latest_version(&target.crate_name)?;
0 commit comments