Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions bhttp/src/err.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
4 changes: 2 additions & 2 deletions ohttp/src/rh/hpke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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")
Expand Down