Apply some clippy suggestions

This commit is contained in:
Graham Esau 2021-03-19 23:20:16 +00:00
parent b8c548136a
commit 3a7d7ad905
7 changed files with 15 additions and 22 deletions

View file

@ -27,10 +27,8 @@ pub enum MyEnum {
StructVariant { floats: Vec<f32> },
}
fn main() {
let schema = schema_for!(MyStruct);
println!("{}", serde_json::to_string_pretty(&schema).unwrap());
}
let schema = schema_for!(MyStruct);
println!("{}", serde_json::to_string_pretty(&schema).unwrap());
```
<details>
@ -133,10 +131,8 @@ pub enum MyEnum {
StructVariant { floats: Vec<f32> },
}
fn main() {
let schema = schema_for!(MyStruct);
println!("{}", serde_json::to_string_pretty(&schema).unwrap());
}
let schema = schema_for!(MyStruct);
println!("{}", serde_json::to_string_pretty(&schema).unwrap());
```
<details>