Skip to content

Commit cb37bd4

Browse files
authored
don't rely on core (#2289)
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent df1077b commit cb37bd4

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

mm2src/mm2_bitcoin/rpc/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
extern crate core;
21
#[cfg(test)] extern crate lazy_static;
32
extern crate log;
43
extern crate rustc_hex as hex;

mm2src/mm2_bitcoin/rpc/src/v1/types/bytes.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ impl ops::Deref for Bytes {
8585
fn deref(&self) -> &Self::Target { &self.0 }
8686
}
8787

88-
impl ::core::fmt::LowerHex for Bytes {
89-
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
88+
impl ::std::fmt::LowerHex for Bytes {
89+
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9090
for i in &self.0[..] {
9191
write!(f, "{:02x}", i)?;
9292
}

mm2src/mm2_bitcoin/rpc/src/v1/types/hash.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ macro_rules! impl_hash {
147147
}
148148
}
149149

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

0 commit comments

Comments
 (0)