Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvsadana committed Jan 28, 2024
1 parent a62c0a7 commit 99ed71e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/utils/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ pub async fn get_latest_commit_hash(org: &str, repo: &str, branch: &str) -> Resu
let client = Client::new();
let response = client.get(github_api_url).header("User-Agent", "reqwest").send().await;

return match response {
match response {
Ok(response) => match response.json::<Commit>().await {
Ok(latest_commit) => Ok(latest_commit.sha.clone()),
Err(err) => Err(GithubError::FailedToGetCommits(err)),
},
Err(err) => Err(GithubError::FailedToGetCommits(err)),
};
}
}

pub fn git_clone(url: &str, path: &PathBuf, branch: Option<&str>) -> Result<(), GithubError> {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/madara.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::app::config::AppChainConfig;
use crate::da::da_layers::DALayer;
use crate::utils::cmd::execute_cmd;
use crate::utils::constants::{APP_DA_CONFIG_NAME, MADARA_BRANCH_NAME, MADARA_REPO_NAME, MADARA_REPO_ORG};
use crate::utils::constants::{APP_DA_CONFIG_NAME, MADARA_REPO_NAME, MADARA_REPO_ORG};
use crate::utils::errors::MadaraError;
use crate::utils::github::git_clone;
use crate::utils::paths::{get_app_home, get_madara_home};
Expand Down

0 comments on commit 99ed71e

Please sign in to comment.