Skip to content

Commit

Permalink
fix: octocrab::instance needs to be wrapped in a runtime call
Browse files Browse the repository at this point in the history
- fix: cargo fix warning
- nit: Cargo.lock found one update
  • Loading branch information
icepuma committed Dec 7, 2023
1 parent fe4cda6 commit f47bed8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/src/actions/binary/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl Action for BinaryGitHub {
)
})?;

let octocrab = octocrab::instance();
let octocrab = async_runtime.block_on(async { octocrab::instance() });

let repos = octocrab.repos(owner, repo);
let releases = repos.releases();
Expand Down
4 changes: 2 additions & 2 deletions lib/src/atoms/file/unarchive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ impl Atom for Unarchive {
});
}

return Ok(Outcome {
Ok(Outcome {
side_effects: vec![],
should_run: self.origin.exists(),
});
})
}

// Apply new to old
Expand Down

0 comments on commit f47bed8

Please sign in to comment.