-
-
Notifications
You must be signed in to change notification settings - Fork 284
Open
Description
I ran into an issue with the following code:
#[derive(Serialize, Deserialize, JsonSchema)]
#[serde(tag = "version")]
#[allow(unused_qualifications)]
pub enum Versioned {
#[serde(rename = "1")]
V1(StructureForV1),
#[serde(rename = "2")]
V2(StructureForV2),
}This would result in failures with our lint rules, "unecessary qualification" tagged on the V1 or V2 structures.
To work around this, I just generated the code from the macro, copy-pasted into my file and added #[allow(unused_qualification)].
Metadata
Metadata
Assignees
Labels
No labels