mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
chore(rust): tidier libpk::main macro impl
This commit is contained in:
parent
7737850afb
commit
f9a6c2cefe
18 changed files with 90 additions and 64 deletions
|
|
@ -20,8 +20,8 @@ pub struct AppCtx {
|
|||
pub discord: Arc<twilight_http::Client>,
|
||||
}
|
||||
|
||||
libpk::main!("scheduled_tasks");
|
||||
async fn real_main() -> anyhow::Result<()> {
|
||||
#[libpk::main]
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
let mut client_builder = twilight_http::Client::builder().token(
|
||||
libpk::config
|
||||
.discord
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue