refactor: minor syntax/docs changes
Diff
src/control_headers.rs | 2 --
src/custom_headers.rs | 2 +-
src/server.rs | 6 +++---
src/winservice.rs | 2 ++
4 files changed, 6 insertions(+), 6 deletions(-)
@@ -1,6 +1,4 @@
use headers::{CacheControl, HeaderMapExt};
use hyper::{Body, Response};
@@ -2,7 +2,7 @@ use hyper::{Body, Response};
use crate::settings::Headers;
pub fn append_headers(
uri: &str,
headers_opts_vec: &Option<Vec<Headers>>,
@@ -95,9 +95,9 @@ impl Server {
addr_str = format!("@FD({})", fd);
tcp_listener = ListenFd::from_env()
.take_tcp_listener(fd)?
.with_context(|| "failed to convert inherited FD into a TCP listener")?;
.with_context(|| "failed to convert inherited 'fd' into a 'tcp' listener")?;
tracing::info!(
"converted inherited file descriptor {} to a TCP listener",
"converted inherited file descriptor {} to a 'tcp' listener",
fd
);
}
@@ -110,7 +110,7 @@ impl Server {
tcp_listener = TcpListener::bind(addr)
.with_context(|| format!("failed to bind to {} address", addr))?;
addr_str = addr.to_string();
tracing::info!("server bound to TCP socket {}", addr_str);
tracing::info!("server bound to tcp socket {}", addr_str);
}
}
@@ -1,3 +1,5 @@
use std::ffi::OsString;
use std::thread;
use std::time::Duration;