Skip to content

Commit d809d1f

Browse files
committed
Fixes
1 parent e44c3e3 commit d809d1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

my-http-server-core/src/http_server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ impl MyHttpServer {
5959
}
6060

6161
#[cfg(unix)]
62-
pub fn new_as_unix_socket(unix_socket_addr: String) -> Self {
62+
pub fn new_as_unix_socket(unix_socket_addr: impl Into<String>) -> Self {
6363
Self {
64-
addr: ListenAddr::Unix(Arc::new(unix_socket_addr)),
64+
addr: ListenAddr::Unix(Arc::new(unix_socket_addr.into())),
6565
middlewares: Some(Vec::new()),
6666
tech_middlewares: Some(Vec::new()),
6767
connections: Arc::new(AtomicI64::new(0)),

0 commit comments

Comments
 (0)