format
This commit is contained in:
parent
dccd4c51ba
commit
ce08cb4d7f
2 changed files with 14 additions and 4 deletions
|
@ -213,7 +213,10 @@ impl Forgejo {
|
|||
repo: &str,
|
||||
target: &str,
|
||||
) -> Result<Option<bytes::Bytes>, 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<Option<bytes::Bytes>, 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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue