projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Actual no_std support
[rust-lightning]
/
lightning
/
src
/
util
/
events.rs
diff --git
a/lightning/src/util/events.rs
b/lightning/src/util/events.rs
index 876dfe6abb551f359a6c67c60fe05c1d104b81ed..74490eb348b6f78eff96088b4db81b24ce1432ad 100644
(file)
--- a/
lightning/src/util/events.rs
+++ b/
lightning/src/util/events.rs
@@
-23,6
+23,7
@@
use bitcoin::blockdata::script::Script;
use bitcoin::secp256k1::key::PublicKey;
use bitcoin::secp256k1::key::PublicKey;
+use io;
use prelude::*;
use core::time::Duration;
use core::ops::Deref;
use prelude::*;
use core::time::Duration;
use core::ops::Deref;
@@
-153,7
+154,7
@@
pub enum Event {
}
impl Writeable for Event {
}
impl Writeable for Event {
- fn write<W: Writer>(&self, writer: &mut W) -> Result<(),
::std::
io::Error> {
+ fn write<W: Writer>(&self, writer: &mut W) -> Result<(), io::Error> {
match self {
&Event::FundingGenerationReady { .. } => {
0u8.write(writer)?;
match self {
&Event::FundingGenerationReady { .. } => {
0u8.write(writer)?;
@@
-222,7
+223,7
@@
impl Writeable for Event {
}
}
impl MaybeReadable for Event {
}
}
impl MaybeReadable for Event {
- fn read<R:
::std::
io::Read>(reader: &mut R) -> Result<Option<Self>, msgs::DecodeError> {
+ fn read<R: io::Read>(reader: &mut R) -> Result<Option<Self>, msgs::DecodeError> {
match Readable::read(reader)? {
0u8 => Ok(None),
1u8 => {
match Readable::read(reader)? {
0u8 => Ok(None),
1u8 => {