Skip to content

Commit 0aa28cb

Browse files
committed
rust: use std Formatter
1 parent c984995 commit 0aa28cb

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

subprojects/gdk_rust/gdk_common/src/be/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ mod transaction;
99
mod txid;
1010

1111
pub use address::*;
12-
use bitcoin::hashes::core::fmt::Formatter;
1312
use bitcoin::util::bip32::DerivationPath;
1413
pub use blockhash::*;
1514
pub use blockheader::*;
@@ -69,7 +68,7 @@ impl Unblinded {
6968
}
7069

7170
impl Debug for Unblinded {
72-
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
71+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
7372
write!(f, "{} {}", self.asset_hex(), self.value)
7473
}
7574
}

subprojects/gdk_rust/gdk_common/src/model.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use std::collections::HashMap;
77

88
use crate::error::Error;
99
use crate::scripts::ScriptType;
10-
use bitcoin::hashes::core::fmt::Formatter;
1110
use bitcoin::util::bip32::{ChildNumber, DerivationPath};
1211
use chrono::{DateTime, NaiveDateTime, Utc};
1312
use serde_json::Value;
@@ -471,7 +470,7 @@ impl SPVVerifyResult {
471470
}
472471

473472
impl Display for SPVVerifyResult {
474-
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
473+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> std::fmt::Result {
475474
match self {
476475
SPVVerifyResult::InProgress => write!(f, "in_progress"),
477476
SPVVerifyResult::Verified => write!(f, "verified"),

subprojects/gdk_rust/gdk_electrum/src/pin/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use crate::Error;
22
use aes::Aes256;
3-
use bitcoin::hashes::core::fmt::Formatter;
43
use bitcoin::hashes::hex::FromHex;
54
use bitcoin::hashes::{sha256, Hash, HashEngine, Hmac, HmacEngine};
65
use bitcoin::secp256k1::{self, ecdh, All, Message, Secp256k1, SecretKey, Signature};
@@ -219,7 +218,7 @@ impl Handshake {
219218
}
220219

221220
impl Display for PinOp {
222-
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
221+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
223222
match &self {
224223
PinOp::Get => write!(f, "get_pin"),
225224
PinOp::Set => write!(f, "set_pin"),

0 commit comments

Comments
 (0)