Commit 49767b13 authored by Ian Jackson's avatar Ian Jackson
Browse files

tor-netdoc: constructor derive: allow setting deprecated fields

We must generally set such a field to the default.
parent 24e3f4c3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -149,6 +149,7 @@ define_derive_deftly! {
        $/// optional fields all get the default values.
        $tvis fn construct(self) -> $ttype {
            $tname { $(
                #[allow(deprecated)]
                $fname: ${select1
                    F_REQUIRED {
                        self.$fname