chore: run rustfmt
All checks were successful
/ check (push) Successful in 2m16s
/ cargo fmt (push) Successful in 1m30s
/ release (push) Successful in 2m31s

This commit is contained in:
Guilhem Lavaux 2025-06-29 13:16:05 +02:00
parent d8642beb59
commit 72d2c32d08

View file

@ -1,13 +1,12 @@
use clap::{Parser, Subcommand};
// use time::OffsetDateTime;
use ctrlc;
use forgejo_api::Auth::Token;
use forgejo_api::Forgejo;
use forgejo_api::structs::CreateReleaseOption;
use std::io;
use url::Url;
use ctrlc;
use std::sync::mpsc::channel;
use url::Url;
pub mod config;
@ -158,10 +157,14 @@ async fn handle_list_releases(config: &config::Config, alias: &str) -> Result<()
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let (tx_ctrlc, _rx_ctrlc) = channel();
let (tx_ctrlc, _rx_ctrlc) = channel();
ctrlc::set_handler(move || tx_ctrlc.send(()).expect("Could not send signal on channel."))
.expect("Error setting Ctrl-C handler");
ctrlc::set_handler(move || {
tx_ctrlc
.send(())
.expect("Could not send signal on channel.")
})
.expect("Error setting Ctrl-C handler");
let args = Cli::parse();