From ce08cb4d7f4a9b9a4cf2b284bf26f782cf1e252d Mon Sep 17 00:00:00 2001 From: Cyborus Date: Mon, 1 Jan 2024 17:56:03 -0500 Subject: [PATCH] format --- src/repository.rs | 10 ++++++++-- tests/ci_test.rs | 8 ++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/repository.rs b/src/repository.rs index 22c518b..e56fad5 100644 --- a/src/repository.rs +++ b/src/repository.rs @@ -213,7 +213,10 @@ impl Forgejo { repo: &str, target: &str, ) -> Result, ForgejoError> { - let request = self.client.get(format!("repos/{owner}/{repo}/archive/{target}.zip")).build()?; + let request = self + .client + .get(format!("repos/{owner}/{repo}/archive/{target}.zip")) + .build()?; self.execute_opt_raw(request).await } @@ -223,7 +226,10 @@ impl Forgejo { repo: &str, target: &str, ) -> Result, ForgejoError> { - let request = self.client.get(format!("repos/{owner}/{repo}/archive/{target}.tar.gz")).build()?; + let request = self + .client + .get(format!("repos/{owner}/{repo}/archive/{target}.tar.gz")) + .build()?; self.execute_opt_raw(request).await } diff --git a/tests/ci_test.rs b/tests/ci_test.rs index 6d6077f..c7e3b90 100644 --- a/tests/ci_test.rs +++ b/tests/ci_test.rs @@ -244,11 +244,15 @@ async fn repo(api: &forgejo_api::Forgejo) -> eyre::Result<()> { "couldn't download attachment" ); ensure!( - api.download_zip_archive("TestingAdmin", "test", "v1.0").await?.is_some(), + api.download_zip_archive("TestingAdmin", "test", "v1.0") + .await? + .is_some(), "couldn't download zip archive" ); ensure!( - api.download_tarball_archive("TestingAdmin", "test", "v1.0").await?.is_some(), + api.download_tarball_archive("TestingAdmin", "test", "v1.0") + .await? + .is_some(), "couldn't download tape archive" );