index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2022-11-03 22:02:08.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2022-11-03 22:02:08.0 +00:00:00
commit
6f059fd06cef26266fab98cf1ee870a5df6c0524 [patch]
tree
5197a460668cc595104a28e684cf5ce41bd94dea
parent
d1baad6ae38536f73c7224a4797d862454c6639f
download
6f059fd06cef26266fab98cf1ee870a5df6c0524.tar.gz

fix: remove needless borrow on create signals module



Diff

 src/signals.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/signals.rs b/src/signals.rs
index b5cf5d3..d3d6d81 100644
--- a/src/signals.rs
+++ b/src/signals.rs
@@ -12,7 +12,7 @@ use tokio::sync::oneshot::Receiver;
#[cfg(unix)]
/// It creates a common list of signals stream for `SIGTERM`, `SIGINT` and `SIGQUIT` to be observed.
pub fn create_signals() -> Result<Signals> {
    Ok(Signals::new(&[SIGHUP, SIGTERM, SIGINT, SIGQUIT])?)
    Ok(Signals::new([SIGHUP, SIGTERM, SIGINT, SIGQUIT])?)
}

#[cfg(unix)]