Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

deserialize_seq is panicing with unimplemented #31

Open
cholcombe973 opened this issue Sep 28, 2016 · 2 comments
Open

deserialize_seq is panicing with unimplemented #31

cholcombe973 opened this issue Sep 28, 2016 · 2 comments

Comments

@cholcombe973
Copy link

I'm not totally sure why but when I try to deserialize an xml document i'm getting a unimplemented panic. I looked at your code on master and I don't see where this is happening.

   6:     0x7f36818f33c7 - _<serde_xml..de..Deserializer<Iter> as serde..de..Deserializer>::deserialize_seq::hc3c59355212360e4
                        at /home/chris/repos/sec-diff/<std macros>:3
   7:     0x7f36818f3370 - serde::de::impls::_<impl serde..de..Deserialize for collections..vec..Vec<T>>::deserialize::hbec24789cc21eb1e
                        at /home/chris/.multirust/toolchains/stable/cargo/registry/src/github.com-1ecc6299db9ec823/serde-0.8.9/src/de/impls.rs:443
   8:     0x7f36818f167c - serde_xml::de::from_iter::h82b513168280f77d
                        at /home/chris/.multirust/toolchains/stable/cargo/registry/src/github.com-1ecc6299db9ec823/serde_xml-0.9.1/src/de/mod.rs:878
   9:     0x7f36818f1608 - serde_xml::de::from_str::h8e9585af27879876
                        at /home/chris/.multirust/toolchains/stable/cargo/registry/src/github.com-1ecc6299db9ec823/serde_xml-0.9.1/src/de/mod.rs:889
  10:     0x7f36818ea4fa - sec_diff::get_info::h9d705d0f3c0dda1b

An example document I'm trying to parse is this: https://www.sec.gov/Archives/edgar/data/1067983/000095012316017295/form13fInfoTable.xml
I'm parsing them into a Vec where Struct is my user defined struct.

@cholcombe973
Copy link
Author

Nevermind it looks like I wasn't modeling it properly with my structs. I fired off this issue too fast :)

@oli-obk
Copy link

oli-obk commented Sep 28, 2016

Still shouldn't panic. I'll add an error message

@oli-obk oli-obk reopened this Sep 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants