serde-ignored icon indicating copy to clipboard operation
serde-ignored copied to clipboard

Not detecting anything when serde(flatten) is used

Open nyurik opened this issue 1 year ago • 1 comments

Modify the README example with these instead, and nothing gets detected.

#[derive(Debug, PartialEq, Deserialize)]
struct Package {
    #[serde(flatten)]
    pub sub: SubPackage,
}

#[derive(Debug, PartialEq, Deserialize)]
struct SubPackage {
    name: String,
    dependencies: Map<String, Dependency>,
}

nyurik avatar Oct 23 '22 03:10 nyurik