lerouxrgd / rsgen-avro

Command line and library for generating Rust types from Avro schemas
MIT License
37 stars 29 forks source link

Updates generated code template to conform with rust 1.53 lints #17

Closed pilocchii closed 3 years ago

pilocchii commented 3 years ago

This fixes a built-in lint issue when the serde(default) helper is used before it is introduced by derive(serde::*) in the generated code. This will become a hard error in the future. See https://github.com/rust-lang/rust/issues/79202 https://doc.rust-lang.org/stable/nightly-rustc/rustc_lint_defs/builtin/static.LEGACY_DERIVE_HELPERS.html

lerouxrgd commented 3 years ago

Thank you !