From abdf56913641a4659ecb3669bc244ab5bdb2e4ac Mon Sep 17 00:00:00 2001 From: Yuval Kogman Date: Tue, 16 Sep 2025 22:08:03 +0200 Subject: [PATCH 1/3] remove feature gated code from non-existent feature --- bhttp/src/err.rs | 3 --- 1 file changed, 3 deletions(-) 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")] From 4f230ed49e2383d8b7528b60810ec1211dd3602f Mon Sep 17 00:00:00 2001 From: Yuval Kogman Date: Tue, 16 Sep 2025 22:08:25 +0200 Subject: [PATCH 2/3] rustfmt --- ohttp/src/rh/hpke.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ohttp/src/rh/hpke.rs b/ohttp/src/rh/hpke.rs index 2dcc76d..fe813c4 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`. From 95f748fe6f25fc31c68fc4f78c5f2ea8c0443cbe Mon Sep 17 00:00:00 2001 From: Yuval Kogman Date: Tue, 16 Sep 2025 22:09:08 +0200 Subject: [PATCH 3/3] remove unused variable to suppress warning --- ohttp/src/rh/hpke.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ohttp/src/rh/hpke.rs b/ohttp/src/rh/hpke.rs index fe813c4..34f4e1b 100644 --- a/ohttp/src/rh/hpke.rs +++ b/ohttp/src/rh/hpke.rs @@ -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")