Skip to content

strange behaviour with url crate #73

Description

@bend-n
#[test]
fn x() {
    #[derive(Deserialize, Serialize)]
    #[serde(untagged)]
    pub enum L { L(Vec<url::Url>) }
    let h = L::L(vec!["file://".parse().unwrap()]);
    bendy::serde::from_bytes::<L>(&bendy::serde::to_bytes::<L>(&h).unwrap()).expect("rt ok");
}

this fails with

CustomDecode("data did not match any variant of untagged enum L")

unsure why, seems like a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions