bin: remove ExtraNodes at root level

This commit is contained in:
Matt Bilker
2018-08-30 23:17:42 -04:00
parent 1e4067d9bb
commit 09f99c5152

View File

@@ -43,9 +43,6 @@ pub struct Testing {
hhg: (u32, u32),
foo: String,
testing2: Testing2,
#[serde(flatten)]
extra: ExtraNodes,
}
fn display_err(err: impl Fail) -> IoError {
@@ -175,7 +172,6 @@ fn main() -> std::io::Result<()> {
ip: Ip4Addr::new(Ipv4Addr::new(127, 0, 0, 1)),
extra: ExtraNodes::new(),
},
extra: ExtraNodes::new(),
};
let bytes = to_bytes(&obj).unwrap();
eprintln!("bytes: {:02x?}", bytes);