Skip to content

Commit 6b2f84f

Browse files
committed
Remove .to_string() since BlockHash impls Debug
1 parent 5412097 commit 6b2f84f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/async.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl AsyncClient {
115115

116116
/// Get a [`BlockHeader`] given a particular block height.
117117
pub async fn get_header(&self, block_height: u32) -> Result<BlockHeader, Error> {
118-
let block_hash = self.get_block_hash(block_height).await?.to_string();
118+
let block_hash = self.get_block_hash(block_height).await?;
119119

120120
let resp = self
121121
.client

src/blocking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl BlockingClient {
128128

129129
/// Get a [`BlockHeader`] given a particular block height.
130130
pub fn get_header(&self, block_height: u32) -> Result<BlockHeader, Error> {
131-
let block_hash = self.get_block_hash(block_height)?.to_string();
131+
let block_hash = self.get_block_hash(block_height)?;
132132

133133
let resp = self
134134
.agent

0 commit comments

Comments
 (0)