Skip to content

Commit

Permalink
Make code compatible with clippy 0.1.80
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperzuk-neti committed Jul 25, 2024
1 parent 56aa615 commit 6cd85d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion fplus-lib/src/core/allocator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ pub async fn create_file_in_repo(
let file_path = file.path.clone();
let file_sha = file.sha.clone();
let file = reqwest::Client::new()
.get(&file.download_url.clone().unwrap())
.get(file.download_url.clone().unwrap())
.send()
.await
.map_err(|e| LDNError::Load(format!("here {}", e)))?;
Expand Down
9 changes: 2 additions & 7 deletions fplus-lib/src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,6 @@ pub struct AllocationObject {
allocation_amount_quantity_options: Vec<String>,
}

#[derive(Debug, Serialize)]
pub struct ApproveChangesObject {
pr_number: u64,
}

impl LDNApplication {
pub async fn single_active(
pr_number: u64,
Expand All @@ -237,7 +232,7 @@ impl LDNApplication {
let (_, pull_request) = gh.get_pull_request_files(pr_number).await.unwrap();
let pull_request = pull_request.first().unwrap();
let pull_request: Response = reqwest::Client::new()
.get(&pull_request.raw_url.to_string())
.get(pull_request.raw_url.to_string())
.send()
.await
.map_err(|e| LDNError::Load(format!("Failed to get pull request files /// {}", e)))?;
Expand Down Expand Up @@ -1446,7 +1441,7 @@ impl LDNApplication {
return Ok(None);
}
let file = reqwest::Client::new()
.get(&item.download_url.clone().unwrap())
.get(item.download_url.clone().unwrap())
.send()
.await
.map_err(|e| LDNError::Load(format!("here {}", e)))?;
Expand Down

0 comments on commit 6cd85d2

Please sign in to comment.