Skip to content

Commit

Permalink
don't rely on core
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <[email protected]>
  • Loading branch information
onur-ozkan committed Dec 10, 2024
1 parent df1077b commit 67da851
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion mm2src/mm2_bitcoin/rpc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
extern crate core;
#[cfg(test)] extern crate lazy_static;
extern crate log;
extern crate rustc_hex as hex;
Expand Down
4 changes: 2 additions & 2 deletions mm2src/mm2_bitcoin/rpc/src/v1/types/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ impl ops::Deref for Bytes {
fn deref(&self) -> &Self::Target { &self.0 }
}

impl ::core::fmt::LowerHex for Bytes {
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
impl ::std::fmt::LowerHex for Bytes {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
for i in &self.0[..] {
write!(f, "{:02x}", i)?;
}
Expand Down
4 changes: 2 additions & 2 deletions mm2src/mm2_bitcoin/rpc/src/v1/types/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ macro_rules! impl_hash {
}
}

impl ::core::fmt::LowerHex for $name {
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
impl ::std::fmt::LowerHex for $name {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
for i in &self.0[..] {
write!(f, "{:02x}", i)?;
}
Expand Down

0 comments on commit 67da851

Please sign in to comment.