Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Empty document should be able to deserialize as empty sequence #137

Closed
CAD97 opened this issue Oct 2, 2019 · 1 comment
Closed

Empty document should be able to deserialize as empty sequence #137

CAD97 opened this issue Oct 2, 2019 · 1 comment

Comments

@CAD97
Copy link
Contributor

CAD97 commented Oct 2, 2019

Similar to #86

@dtolnay
Copy link
Owner

dtolnay commented Jul 28, 2022

This is fixed in 0.9.

fn main() -> Result<(), serde_yaml::Error> {
    let empty_sequence: Vec<usize> = serde_yaml::from_str("")?;
    println!("{:?}", empty_sequence);
    Ok(())
}
[]

@dtolnay dtolnay closed this as completed Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants