Skip to content

Commit dc77a05

Browse files
committed
style: Format async function call for better readability
1 parent 3988eca commit dc77a05

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/codeql.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
use anyhow::{Result, Context};
1+
use anyhow::{Context, Result};
22
use ghastoolkit::CodeQL;
33

44
/// Download the CodeQL CLI using the GitHub CLI
5-
pub async fn gh_codeql_download(codeql_version: &str)-> Result<String> {
6-
5+
pub async fn gh_codeql_download(codeql_version: &str) -> Result<String> {
76
log::info!("Downloading CodeQL Extension for GitHub CLI...");
87
tokio::process::Command::new("gh")
98
.args(&["extensions", "install", "github/gh-codeql"])
@@ -34,4 +33,4 @@ pub async fn gh_codeql_download(codeql_version: &str)-> Result<String> {
3433
}
3534

3635
Ok("/usr/local/bin/codeql".to_string())
37-
}
36+
}

src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ async fn main() -> Result<()> {
4949
log::warn!("Failed to install CodeQL: {error:?}");
5050
log::info!("Attempting to install CodeQL using GitHub CLI...");
5151

52-
let location = gh_codeql_download(codeql_version).await
52+
let location = gh_codeql_download(codeql_version)
53+
.await
5354
.context("Failed to download CodeQL using GitHub CLI")?;
54-
55+
5556
codeql = CodeQL::init()
5657
.path(location)
5758
.build()

0 commit comments

Comments
 (0)