Remove JsonSchema impl for Infallible

This isn't used in serde, and requires rust 1.34+
This commit is contained in:
Graham Esau 2019-10-27 11:50:05 +00:00
parent a028807633
commit ff90f96b2d

View file

@ -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::*;