Remove JsonSchema impl for Infallible
This isn't used in serde, and requires rust 1.34+
This commit is contained in:
parent
a028807633
commit
ff90f96b2d
1 changed files with 0 additions and 12 deletions
|
@ -85,18 +85,6 @@ impl<T: ?Sized> JsonSchema for std::marker::PhantomData<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl JsonSchema for std::convert::Infallible {
|
||||
no_ref_schema!();
|
||||
|
||||
fn schema_name() -> String {
|
||||
"Never".to_owned()
|
||||
}
|
||||
|
||||
fn json_schema(gen: &mut SchemaGenerator) -> Schema {
|
||||
gen.schema_for_none()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue