Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2023-12-23 19:13:25 +00:00 committed by GitHub
parent 25ec21cc39
commit 29476c2295
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,22 +131,18 @@ pub async fn terminal(
let mut log_writer = BufWriter::new(log_handle); let mut log_writer = BufWriter::new(log_handle);
// use to trigger cleanup if receive signal to kill process // use to trigger cleanup if receive signal to kill process
let mut sigalrm = signal(SignalKind::alarm()) let mut sigalrm = signal(SignalKind::alarm()).expect("uqbar: failed to set up SIGALRM handler");
.expect("uqbar: failed to set up SIGALRM handler"); let mut sighup = signal(SignalKind::hangup()).expect("uqbar: failed to set up SIGHUP handler");
let mut sighup = signal(SignalKind::hangup()) let mut sigint =
.expect("uqbar: failed to set up SIGHUP handler"); signal(SignalKind::interrupt()).expect("uqbar: failed to set up SIGINT handler");
let mut sigint = signal(SignalKind::interrupt()) let mut sigpipe = signal(SignalKind::pipe()).expect("uqbar: failed to set up SIGPIPE handler");
.expect("uqbar: failed to set up SIGINT handler"); let mut sigquit = signal(SignalKind::quit()).expect("uqbar: failed to set up SIGQUIT handler");
let mut sigpipe = signal(SignalKind::pipe()) let mut sigterm =
.expect("uqbar: failed to set up SIGPIPE handler"); signal(SignalKind::terminate()).expect("uqbar: failed to set up SIGTERM handler");
let mut sigquit = signal(SignalKind::quit()) let mut sigusr1 =
.expect("uqbar: failed to set up SIGQUIT handler"); signal(SignalKind::user_defined1()).expect("uqbar: failed to set up SIGUSR1 handler");
let mut sigterm = signal(SignalKind::terminate()) let mut sigusr2 =
.expect("uqbar: failed to set up SIGTERM handler"); signal(SignalKind::user_defined2()).expect("uqbar: failed to set up SIGUSR2 handler");
let mut sigusr1 = signal(SignalKind::user_defined1())
.expect("uqbar: failed to set up SIGUSR1 handler");
let mut sigusr2 = signal(SignalKind::user_defined2())
.expect("uqbar: failed to set up SIGUSR2 handler");
loop { loop {
let event = reader.next().fuse(); let event = reader.next().fuse();