Skip to content

Commit

Permalink
app_name.rs app_versions.rs file.rs compile_go.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo committed Oct 22, 2024
1 parent ff207ca commit 3a10996
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/config/app_name.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::fmt::Display;
use std::path::Path;

#[derive(Clone, Debug, PartialEq)]
#[derive(Debug, PartialEq)]
pub struct AppName(String);

impl AppName {
Expand Down
2 changes: 1 addition & 1 deletion src/config/app_versions.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::{AppName, RequestedVersions};

#[derive(Clone, Debug, PartialEq)]
#[derive(Debug, PartialEq)]
pub struct AppVersions {
pub app_name: AppName,
pub versions: RequestedVersions,
Expand Down
2 changes: 1 addition & 1 deletion src/config/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::fs::OpenOptions;
use std::io::{ErrorKind, Write};
use std::str::SplitAsciiWhitespace;

#[derive(Clone, Debug, Default, PartialEq)]
#[derive(Debug, Default, PartialEq)]
pub struct File {
pub apps: Vec<AppVersions>,
}
Expand Down
3 changes: 1 addition & 2 deletions src/install/compile_go.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ fn compile_using_rta_go(
let target_folder = yard.create_app_folder(&app.name(), app_version)?;
// get the Go version to use
let go = apps::go::Go {};
let binding = config_file.clone();
let requested_go_versions = if let Some(versions) = binding.lookup(&go.name()) {
let requested_go_versions = if let Some(versions) = config_file.lookup(&go.name()) {
versions
} else {
let versions = go.installable_versions(5, log)?;
Expand Down

0 comments on commit 3a10996

Please sign in to comment.