diff --git a/.vscode/settings.json b/.vscode/settings.json index 7172fbb..78f1b9a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,5 +6,6 @@ "test", "criterion", ], - "rust-analyzer.check.workspace": false + "rust-analyzer.check.workspace": false, + "editor.formatOnSave": true } diff --git a/src/api/autogen/index.ts b/src/api/autogen/index.ts index e1bbaad..c7917b6 100644 --- a/src/api/autogen/index.ts +++ b/src/api/autogen/index.ts @@ -196,8 +196,7 @@ class Property { return ` ${stringifyDoc(this.doc)} ${ - toPascalCase(this.name) === this.originalName && - toPropName(this.originalName) === this.name + toPascalCase(this.name) === this.originalName ? '' : `#[serde(rename = "${this.originalName}")]` }