From aed66e94c5424896dbcd219c6972c7e80c9c05ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 11 Dec 2022 12:37:32 +0200 Subject: [PATCH] Fix compilation of tests without handshake feature --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index f984019..a89fccd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -486,6 +486,7 @@ mod tests { assert_eq!(crate::domain(&request).unwrap(), "::1"); } + #[cfg(feature = "handshake")] #[test] fn requests_cannot_contain_invalid_uris() { use tungstenite::client::IntoClientRequest;