Skip to content

Commit

Permalink
[chore] get rid of clippy warnings :D
Browse files Browse the repository at this point in the history
  • Loading branch information
icepuma committed Aug 1, 2022
1 parent 2686a76 commit 1a4369f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/actions/binary/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct GitHubAsset {
impl Action for BinaryGitHub {
fn plan(&self, _: &Manifest, _: &Contexts) -> Vec<Step> {
// Don't need to do anything if something already exists at the path
if (std::path::Path::new(format!("{}/{}", self.directory, self.name).as_str()).exists()) {
if std::path::Path::new(format!("{}/{}", self.directory, self.name).as_str()).exists() {
return vec![];
};

Expand All @@ -38,7 +38,7 @@ impl Action for BinaryGitHub {
}
};

let (owner, repo) = self.repository.split_once("/").unwrap();
let (owner, repo) = self.repository.split_once('/').unwrap();

let octocrab = octocrab::instance();

Expand Down Expand Up @@ -98,15 +98,15 @@ impl Action for BinaryGitHub {
if score > ass.score {
Some(GitHubAsset {
url: asset.browser_download_url.into(),
score: score,
score,
})
} else {
Some(ass)
}
}
None => Some(GitHubAsset {
url: asset.browser_download_url.into(),
score: score,
score,
}),
}
});
Expand Down

0 comments on commit 1a4369f

Please sign in to comment.