mirror of
https://github.com/mbilker/kbinxml-rs.git
synced 2026-09-09 11:05:19 -05:00
bin: remove ExtraNodes at root level
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user