summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config.rs3
-rw-r--r--src/main.rs2
-rw-r--r--src/service.rs2
-rw-r--r--src/systemd_socket.rs2
4 files changed, 3 insertions, 6 deletions
diff --git a/src/config.rs b/src/config.rs
index bddfb40..ef3d708 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -103,8 +103,7 @@ mod tests {
( $e:expr , $pat:pat => $c:expr ) => {
match $e {
$pat => $c,
- ref e => panic!("assertion failed: `{:?}` does not match `{}`",
- e, stringify!($pat))
+ ref e => panic!("assertion failed: `{:?}` does not match `{}`", e, stringify!($pat))
}
};
}
diff --git a/src/main.rs b/src/main.rs
index c09aa46..19fa3bf 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -45,7 +45,7 @@ fn get_listener_from_systemd() -> io::Result<TokioUnixListener> {
}
let fd = fds.remove(0);
-
+ // See note inside `systemd_socket::is_socket_internal` for why this is broken on Darwin.
#[cfg(not(target_vendor = "apple"))] // See note in `is_socket_unix`.
{
use nix::sys::socket::SockType;
diff --git a/src/service.rs b/src/service.rs
index a261bdf..b9a2733 100644
--- a/src/service.rs
+++ b/src/service.rs
@@ -132,8 +132,6 @@ fn decode_hex(s: &str) -> Result<Vec<u8>, ParseIntError> {
}
/// Validates the signature that GitHub attaches to events.
-///
-///
fn validate_request(secret: &String, headers: &HeaderMap<HeaderValue>, body: &Bytes) -> bool {
// To verify the authenticity of the event, GitHub attaches a signature of the payload to
// every request. We extract the header. The header value will look something like this:
diff --git a/src/systemd_socket.rs b/src/systemd_socket.rs
index 043fd8e..b33008c 100644
--- a/src/systemd_socket.rs
+++ b/src/systemd_socket.rs
@@ -331,7 +331,7 @@ mod tests {
use ::lazy_static::lazy_static;
use ::std::env;
use ::std::os::unix::io::OwnedFd;
- use ::std::os::fd::{AsRawFd, FromRawFd, RawFd};
+ use ::std::os::fd::{AsRawFd, FromRawFd};
use ::std::sync::{Mutex,MutexGuard};
use ::std::mem;