-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RangeDeserializerBuilder example does not works #434
Comments
I suppose you are trying to deserialize into unknown type? In the example, in the loop, there is some explicit type set : if let Some(result) = iter.next() {
let (label, value): (String, f64) = result?; // <-- HERE
assert_eq!(label, "celsius");
assert_eq!(value, 22.2222);
Ok(())
} else {
Err(From::from("expected at least one record but got none"))
} Alternatively you can set it on the builder: let iter_records =
RangeDeserializerBuilder::<_, String>::with_headers(&["column"])
.from_range(&range)?; |
Hi yes, it is set after, but the code fails when creating the |
Hello, I'm also running into the same issue and I'm not quite sure I understand what's happening. Following examples from calamine ReadMe: I have the following code :
and this doesn't compile and returns the following error.
|
Hi, I'm following the example to read a columns from a xlsx:
But it fails with:
Please fix the examples :3
Thx!
The text was updated successfully, but these errors were encountered: