avoid collision with another _

This commit is contained in:
Brian Hicks 2024-05-02 06:28:18 -05:00
parent 31586a938a
commit 34b7ebc051
No known key found for this signature in database
GPG Key ID: C4F324B9CAAB0D50

View File

@ -535,7 +535,7 @@ impl Type {
encoder.push_str(" )");
}
RecordPresence::Optional => {
let local_var = name.to_camel_case()?;
let local_var = format!("{}_", name.to_camel_case()?);
let maybe_inner = match field_type {
Type::Maybe(inner) => inner,