From 1a4369fdfc7008b92426d36c9cceb4a4d77e01df Mon Sep 17 00:00:00 2001 From: Stefan Ruzitschka <362487+icepuma@users.noreply.github.com> Date: Sat, 30 Jul 2022 04:17:46 +0200 Subject: [PATCH] [chore] get rid of clippy warnings :D --- lib/src/actions/binary/github.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/actions/binary/github.rs b/lib/src/actions/binary/github.rs index 93fc1b68..363751dd 100644 --- a/lib/src/actions/binary/github.rs +++ b/lib/src/actions/binary/github.rs @@ -26,7 +26,7 @@ struct GitHubAsset { impl Action for BinaryGitHub { fn plan(&self, _: &Manifest, _: &Contexts) -> Vec { // 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![]; }; @@ -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(); @@ -98,7 +98,7 @@ impl Action for BinaryGitHub { if score > ass.score { Some(GitHubAsset { url: asset.browser_download_url.into(), - score: score, + score, }) } else { Some(ass) @@ -106,7 +106,7 @@ impl Action for BinaryGitHub { } None => Some(GitHubAsset { url: asset.browser_download_url.into(), - score: score, + score, }), } });