From 6f059fd06cef26266fab98cf1ee870a5df6c0524 Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Thu, 3 Nov 2022 23:02:08 +0100 Subject: [PATCH] fix: remove needless borrow on create signals module --- 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 { - Ok(Signals::new(&[SIGHUP, SIGTERM, SIGINT, SIGQUIT])?) + Ok(Signals::new([SIGHUP, SIGTERM, SIGINT, SIGQUIT])?) } #[cfg(unix)] -- libgit2 1.7.2