diff --git a/Cargo.lock b/Cargo.lock index 62a725a..d8e9eba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -364,7 +364,7 @@ dependencies = [ [[package]] name = "hyper-custom-cert" -version = "0.1.0" +version = "0.1.2" dependencies = [ "hyper-rustls", "hyper-tls", diff --git a/crates/hyper-custom-cert/Cargo.toml b/crates/hyper-custom-cert/Cargo.toml index c09db26..9472618 100644 --- a/crates/hyper-custom-cert/Cargo.toml +++ b/crates/hyper-custom-cert/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hyper-custom-cert" -version = "0.1.2" +version = "0.1.3" edition = "2021" description = "A small, ergonomic HTTP client wrapper around hyper with optional support for custom Root CAs and a dev-only insecure mode for self-signed certificates." license = "MIT OR Apache-2.0" diff --git a/crates/hyper-custom-cert/tests/insecure_dangerous_features.rs b/crates/hyper-custom-cert/tests/insecure_dangerous_features.rs index e9e820b..f26c188 100644 --- a/crates/hyper-custom-cert/tests/insecure_dangerous_features.rs +++ b/crates/hyper-custom-cert/tests/insecure_dangerous_features.rs @@ -7,6 +7,8 @@ //! Never use this in production environments! use hyper_custom_cert::HttpClient; +use std::collections::HashMap; +use std::time::Duration; #[cfg(feature = "insecure-dangerous")] #[test] @@ -122,15 +124,15 @@ fn insecure_static_convenience_method() { #[test] fn insecure_multiple_configurations() { // Test creating multiple clients with different insecure settings - let client1 = HttpClient::builder() + let _client1 = HttpClient::builder() .insecure_accept_invalid_certs(true) .build(); - let client2 = HttpClient::builder() + let _client2 = HttpClient::builder() .insecure_accept_invalid_certs(false) .build(); - let client3 = HttpClient::builder() + let _client3 = HttpClient::builder() .with_timeout(Duration::from_secs(10)) .insecure_accept_invalid_certs(true) .build();