Remove usages of gen
identifier (#323)
`gen` is a reserved keyword in rust 2024, making it very awkward to use as a module/variable name.
This commit is contained in:
parent
8142be1ea2
commit
b4f214f6dc
42 changed files with 186 additions and 171 deletions
|
@ -19,8 +19,8 @@ pub struct MyStruct {
|
|||
pub bool_normal: bool,
|
||||
}
|
||||
|
||||
fn make_custom_schema(gen: &mut SchemaGenerator) -> Schema {
|
||||
let mut schema = String::json_schema(gen);
|
||||
fn make_custom_schema(generator: &mut SchemaGenerator) -> Schema {
|
||||
let mut schema = String::json_schema(generator);
|
||||
schema
|
||||
.ensure_object()
|
||||
.insert("format".into(), "boolean".into());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue