diff --git a/Cargo.toml b/Cargo.toml index 4b701bb..aa961ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ authors = ["Simon Bernier St-Pierre "] edition = "2018" license = "MPL-2.0" name = "attohttpc" -version = "0.19.0" +version = "0.19.1" categories = ["network-programming", "web-programming", "web-programming::http-client"] description = "Small and lightweight HTTP client" diff --git a/src/tls/no_tls_impl.rs b/src/tls/no_tls_impl.rs index 9445d0f..ba46cbb 100644 --- a/src/tls/no_tls_impl.rs +++ b/src/tls/no_tls_impl.rs @@ -18,9 +18,7 @@ impl TlsHandshaker { pub fn danger_accept_invalid_hostnames(&mut self, _accept_invalid_hostnames: bool) {} - pub fn add_root_certificate(&mut self, _cert: Certificate) -> Result<()> { - Ok(()) - } + pub fn add_root_certificate(&mut self, _cert: Certificate) {} pub fn handshake(&self, _domain: &str, _stream: S) -> Result> where