Update bitcoin crate to 0.29.0
[rust-lightning] / lightning / src / util / ser.rs
index ecf85839a5a8e19ebfed3f8e87b8b5832427e4a5..bec915bae4efc502381068ce3544d6ef29d58021 100644 (file)
@@ -860,7 +860,7 @@ macro_rules! impl_consensus_ser {
        ($bitcoin_type: ty) => {
                impl Writeable for $bitcoin_type {
                        fn write<W: Writer>(&self, writer: &mut W) -> Result<(), io::Error> {
-                               match self.consensus_encode(WriterWriteAdaptor(writer)) {
+                               match self.consensus_encode(&mut WriterWriteAdaptor(writer)) {
                                        Ok(_) => Ok(()),
                                        Err(e) => Err(e),
                                }