schemars/schemars/tests/range.rs
Graham Esau 043d794e39 Fix build warnings from tests
Deriving `Debug` is no longer enough to suppress warnings about unused fields
2022-05-15 22:55:10 +01:00

17 lines
339 B
Rust

mod util;
use schemars::JsonSchema;
use std::ops::{Bound, Range, RangeInclusive};
use util::*;
#[allow(dead_code)]
#[derive(JsonSchema)]
struct MyStruct {
range: Range<usize>,
inclusive: RangeInclusive<f64>,
bound: Bound<String>,
}
#[test]
fn result() -> TestResult {
test_default_generated_schema::<MyStruct>("range")
}