From dccae82d4f63f52160bac24ca34e8856f12c9971 Mon Sep 17 00:00:00 2001 From: Arik Sosman Date: Thu, 18 Jul 2024 01:05:09 -0700 Subject: [PATCH] use bitcoin sink --- lightning/src/lib.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lightning/src/lib.rs b/lightning/src/lib.rs index 191788ad6..4e835120a 100644 --- a/lightning/src/lib.rs +++ b/lightning/src/lib.rs @@ -68,8 +68,6 @@ extern crate core; extern crate hex; #[cfg(any(test, feature = "_test_utils"))] extern crate regex; -extern crate core2; - #[cfg(not(feature = "std"))] extern crate core2; #[cfg(not(feature = "std"))] extern crate libm; @@ -91,8 +89,11 @@ pub(crate) mod crypto; pub mod io { pub use bitcoin::io::*; - pub use core2::io::Seek; - pub use core2::io::SeekFrom; + #[cfg(not(feature = "std"))] pub use core2::io::Seek; + #[cfg(not(feature = "std"))] pub use core2::io::SeekFrom; + + #[cfg(feature = "std")] pub use std::io::Seek; + #[cfg(feature = "std")] pub use std::io::SeekFrom; } #[cfg(feature = "std")] @@ -178,7 +179,8 @@ mod io_extras { Ok(buf) } - pub use std::io::{copy, sink}; + pub use bitcoin::io::sink; + pub use std::io::copy; } mod prelude { -- 2.39.5