rustfmt
This commit is contained in:
parent
1e71dd87ed
commit
afef05b54d
|
@ -74,6 +74,9 @@ mod tests {
|
|||
let res = super::read("testdata/basic.md".into(), "0.1.0".into());
|
||||
assert!(res.is_ok());
|
||||
let delta = res.unwrap();
|
||||
assert_eq!(delta, "Hi there this is a test\\!\n### ADDED\n - something\n")
|
||||
assert_eq!(
|
||||
delta,
|
||||
"Hi there this is a test\\!\n### ADDED\n - something\n"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,8 @@ pub(crate) async fn run(env: DroneEnv) -> Result<()> {
|
|||
let default_branch = match &env.default_branch {
|
||||
None => {
|
||||
let cli = crate::client(&common)?;
|
||||
let repo = crate::gitea::get_repo(&cli, &common.server, &common.owner, &common.repo).await?;
|
||||
let repo =
|
||||
crate::gitea::get_repo(&cli, &common.server, &common.owner, &common.repo).await?;
|
||||
repo.default_branch
|
||||
}
|
||||
Some(branch) => branch.to_string(),
|
||||
|
|
|
@ -32,12 +32,10 @@ pub(crate) async fn run(
|
|||
cr.prerelease = rm.pre_release;
|
||||
|
||||
let resp = cli
|
||||
.post(
|
||||
&format!(
|
||||
.post(&format!(
|
||||
"{}/api/v1/repos/{}/{}/releases/{}",
|
||||
common.server, common.owner, common.repo, release.id
|
||||
),
|
||||
)
|
||||
))
|
||||
.json(&cr)
|
||||
.send()
|
||||
.await?;
|
||||
|
|
Loading…
Reference in New Issue