X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Fchacha20poly1305rfc.rs;h=a5bec2c82b8cf00da2a597d3c68026aa7e87152f;hb=a61746246c369dada11469c25dd739f4807c042b;hp=552226ca3e64121569cd2ff65589152255db9c05;hpb=3ba91cea59fc2a9c4edb6b06ba54244a640d659d;p=rust-lightning diff --git a/lightning/src/util/chacha20poly1305rfc.rs b/lightning/src/util/chacha20poly1305rfc.rs index 552226ca..a5bec2c8 100644 --- a/lightning/src/util/chacha20poly1305rfc.rs +++ b/lightning/src/util/chacha20poly1305rfc.rs @@ -341,9 +341,9 @@ mod tests { field3: Vec, } impl_writeable_tlv_based!(TestWriteable, { - (1, field1, vec_type), - (2, field2, vec_type), - (3, field3, vec_type), + (1, field1, required_vec), + (2, field2, required_vec), + (3, field3, required_vec), }); #[test] @@ -411,7 +411,7 @@ mod tests { #[test] fn chacha_stream_adapters_ser_macros() { // Test that our stream adapters work as expected with the TLV macros. - // This also serves to test the `option: $trait` variant of the `decode_tlv` ser macro. + // This also serves to test the `option: $trait` variant of the `_decode_tlv` ser macro. do_chacha_stream_adapters_ser_macros().unwrap() } }