Fix build warnings from tests
Deriving `Debug` is no longer enough to suppress warnings about unused fields
This commit is contained in:
parent
29d2455bb3
commit
043d794e39
30 changed files with 188 additions and 136 deletions
|
|
@ -2,12 +2,14 @@ mod util;
|
|||
use schemars::JsonSchema;
|
||||
use util::*;
|
||||
|
||||
#[derive(Debug, JsonSchema)]
|
||||
#[allow(dead_code)]
|
||||
#[derive(JsonSchema)]
|
||||
struct MyStruct {
|
||||
foo: i32,
|
||||
}
|
||||
|
||||
#[derive(Debug, JsonSchema)]
|
||||
#[allow(dead_code)]
|
||||
#[derive(JsonSchema)]
|
||||
struct Container {
|
||||
result1: Result<MyStruct, Vec<String>>,
|
||||
result2: Result<bool, ()>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue