mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-29 12:06:35 -05:00
Don't depend on core::fmt through bitcoin_hashes re-export
This commit is contained in:
parent
95d721b4df
commit
7120a1f70a
2 changed files with 6 additions and 6 deletions
|
|
@ -1,9 +1,9 @@
|
|||
use crate::monero::TransferProof;
|
||||
use crate::protocol::bob;
|
||||
use crate::protocol::bob::BobState;
|
||||
use ::bitcoin::hashes::core::fmt::Display;
|
||||
use monero_rpc::wallet::BlockHeight;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::fmt;
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, Serialize, PartialEq)]
|
||||
pub enum Bob {
|
||||
|
|
@ -104,8 +104,8 @@ impl From<Bob> for BobState {
|
|||
}
|
||||
}
|
||||
|
||||
impl Display for Bob {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
impl fmt::Display for Bob {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
Bob::Started { .. } => write!(f, "Started"),
|
||||
Bob::ExecutionSetupDone { .. } => f.write_str("Execution setup done"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue