Bump MSRV to 1.36.0
This commit is contained in:
parent
7a1e02eefd
commit
5ca2d08013
8 changed files with 38 additions and 82 deletions
|
@ -1,21 +1,18 @@
|
|||
mod util;
|
||||
|
||||
#[cfg(num_nonzero_signed)]
|
||||
mod nonzero_ints {
|
||||
use super::*;
|
||||
use schemars::JsonSchema;
|
||||
use util::*;
|
||||
use super::*;
|
||||
use schemars::JsonSchema;
|
||||
use util::*;
|
||||
|
||||
#[derive(Debug, JsonSchema)]
|
||||
struct MyStruct {
|
||||
unsigned: u32,
|
||||
nonzero_unsigned: std::num::NonZeroU32,
|
||||
signed: i32,
|
||||
nonzero_signed: std::num::NonZeroI32,
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn nonzero_ints() -> TestResult {
|
||||
test_default_generated_schema::<MyStruct>("nonzero_ints")
|
||||
}
|
||||
#[derive(Debug, JsonSchema)]
|
||||
struct MyStruct {
|
||||
unsigned: u32,
|
||||
nonzero_unsigned: std::num::NonZeroU32,
|
||||
signed: i32,
|
||||
nonzero_signed: std::num::NonZeroI32,
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn nonzero_ints() -> TestResult {
|
||||
test_default_generated_schema::<MyStruct>("nonzero_ints")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue