]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Specify full import path in decode_tlv macro
authorValentine Wallace <vwallace@protonmail.com>
Fri, 7 Oct 2022 19:22:00 +0000 (15:22 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Fri, 7 Oct 2022 19:36:34 +0000 (15:36 -0400)
Prevents unresolved import error

lightning/src/util/ser_macros.rs

index 94990fcb8a17c8056dfd01d00b18db78d58e466f..782c0ef27d5de87be4992797a352fb3652c07584 100644 (file)
@@ -157,17 +157,17 @@ macro_rules! decode_tlv {
                decode_tlv!($reader, $field, required)
        }};
        ($reader: expr, $field: ident, required) => {{
-               $field = ser::Readable::read(&mut $reader)?;
+               $field = ::util::ser::Readable::read(&mut $reader)?;
        }};
        ($reader: expr, $field: ident, vec_type) => {{
-               let f: ::util::ser::VecReadWrapper<_> = ser::Readable::read(&mut $reader)?;
+               let f: ::util::ser::VecReadWrapper<_> = ::util::ser::Readable::read(&mut $reader)?;
                $field = Some(f.0);
        }};
        ($reader: expr, $field: ident, option) => {{
-               $field = Some(ser::Readable::read(&mut $reader)?);
+               $field = Some(::util::ser::Readable::read(&mut $reader)?);
        }};
        ($reader: expr, $field: ident, ignorable) => {{
-               $field = ser::MaybeReadable::read(&mut $reader)?;
+               $field = ::util::ser::MaybeReadable::read(&mut $reader)?;
        }};
        ($reader: expr, $field: ident, (option: $trait: ident $(, $read_arg: expr)?)) => {{
                $field = Some($trait::read(&mut $reader $(, $read_arg)*)?);