diff --git a/bhttp/src/err.rs b/bhttp/src/err.rs index 19d5455..d9d9b6f 100644 --- a/bhttp/src/err.rs +++ b/bhttp/src/err.rs @@ -6,9 +6,6 @@ pub enum Error { ConnectUnsupported, #[error("a field contained invalid Unicode: {0}")] CharacterEncoding(#[from] std::string::FromUtf8Error), - #[error("a chunk of data of {0} bytes is too large")] - #[cfg(feature = "stream")] - ChunkTooLarge(u64), #[error("read a response when expecting a request")] ExpectedRequest, #[error("read a request when expecting a response")] diff --git a/ohttp/src/rh/hpke.rs b/ohttp/src/rh/hpke.rs index 2dcc76d..34f4e1b 100644 --- a/ohttp/src/rh/hpke.rs +++ b/ohttp/src/rh/hpke.rs @@ -11,8 +11,8 @@ use bitcoin_hpke::{ setup_receiver, setup_sender, Deserializable, OpModeR, OpModeS, Serializable, }; -use ::rand::thread_rng; use log::trace; +use rand::thread_rng; use std::ops::Deref; /// Configuration for `Hpke`. @@ -98,7 +98,7 @@ impl PrivateKey { impl std::fmt::Debug for PrivateKey { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { - if let Ok(b) = self.key_data() { + if let Ok(_) = self.key_data() { write!(f, "PrivateKey [REDACTED]") } else { write!(f, "Opaque PrivateKey")