Clippy fixes
This commit is contained in:
parent
61d64df57d
commit
29dc025629
7 changed files with 69 additions and 63 deletions
14
README.md
14
README.md
|
@ -221,14 +221,12 @@ pub enum MyEnum {
|
|||
StructVariant { floats: Vec<f32> },
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let schema = schema_for_value!(MyStruct {
|
||||
my_int: 123,
|
||||
my_bool: true,
|
||||
my_nullable_enum: Some(MyEnum::StringNewType("foo".to_string()))
|
||||
});
|
||||
println!("{}", serde_json::to_string_pretty(&schema).unwrap());
|
||||
}
|
||||
let schema = schema_for_value!(MyStruct {
|
||||
my_int: 123,
|
||||
my_bool: true,
|
||||
my_nullable_enum: Some(MyEnum::StringNewType("foo".to_string()))
|
||||
});
|
||||
println!("{}", serde_json::to_string_pretty(&schema).unwrap());
|
||||
```
|
||||
|
||||
<details>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue